[Bug c++/48046] [4.5/4.6/4.7 Regression] Expected diagnostic "reference to 'type' is ambiguous" not given for function-local static declaration
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 27 15:58:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48046
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-27 15:57:11 UTC ---
Author: jason
Date: Wed Apr 27 15:57:06 2011
New Revision: 173038
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173038
Log:
PR c++/48046
* parser.c (cp_parser_diagnose_invalid_type_name): Commit
to tentative parse sooner.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/parse/ambig6.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/parser.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list