[Bug c++/48046] [4.5 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
Thu Apr 28 15:52:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48046
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-28 15:02:19 UTC ---
Author: jason
Date: Thu Apr 28 15:02:17 2011
New Revision: 173116
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173116
Log:
PR c++/48046
* parser.c (cp_parser_diagnose_invalid_type_name): Commit
to tentative parse sooner.
Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/parse/ambig6.C
Modified:
branches/gcc-4_5-branch/gcc/cp/ChangeLog
branches/gcc-4_5-branch/gcc/cp/parser.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list