diff options
author | Jason Merrill <jason@redhat.com> | 2011-08-14 00:41:43 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-08-14 00:41:43 -0400 |
commit | fdf03377272dc39c9c9ceea453282ba7a8032142 (patch) | |
tree | 97ad70a23b265deb3ad4b09c18d9cf2bd1cd9038 /gcc/cp/lex.c | |
parent | b23903f787aaaf84dea18ae8c19dbb232c6ae552 (diff) | |
download | gcc-fdf03377272dc39c9c9ceea453282ba7a8032142.zip gcc-fdf03377272dc39c9c9ceea453282ba7a8032142.tar.gz gcc-fdf03377272dc39c9c9ceea453282ba7a8032142.tar.bz2 |
re PR c++/50075 ([C++0x] ICE related to parameter deduction and initializer_list)
PR c++/50075
* name-lookup.c (local_bindings_p): New.
* name-lookup.h: Declare it.
* lex.c (unqualified_name_lookup_error): Use it.
From-SVN: r177743
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 691a2ec..c11e3b3 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -456,7 +456,7 @@ unqualified_name_lookup_error (tree name) } /* Prevent repeated error messages by creating a VAR_DECL with this NAME in the innermost block scope. */ - if (current_function_decl) + if (local_bindings_p ()) { tree decl; decl = build_decl (input_location, |