re PR c++/51640 (Misleading error if the type in the catch() is ambiguous)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 16 May 2014 17:42:23 +0000 (17:42 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 16 May 2014 17:42:23 +0000 (17:42 +0000)
commit54674a35bd0a8d231ad314064d5f7bb8a60ef5df
tree6613a62722d8d1cf1c1310d7824ae8798f773352
parentf4e075e7d9b707fcc5cc53a0e3149ac41172e20b
re PR c++/51640 (Misleading error if the type in the catch() is ambiguous)

/cp
2014-05-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51640
* parser.c (cp_parser_diagnose_invalid_type_name): Early return
when cp_parser_lookup_name sets ambiguous_decls.

/testsuite
2014-05-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51640
* g++.dg/parse/error54.C: New.

From-SVN: r210521
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error54.C [new file with mode: 0644]