]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/12288 (unintelligible error message for constructor declaration with misspe...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 20 May 2013 17:13:47 +0000 (17:13 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 20 May 2013 17:13:47 +0000 (17:13 +0000)
commit9bbc95654de572e68a6afe4dd892721d34304ed6
tree8374e95e085b76ea9278b61fa12de7e51d6bc314
parent32bfcf80647d3fd3a658c7032a5aebe767341893
re PR c++/12288 (unintelligible error message for constructor declaration with misspelled type)

/cp
2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/12288
* parser.c (cp_parser_parameter_declaration): Check return value
of cp_parser_parse_and_diagnose_invalid_type_name.

/testsuite
2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/12288
* g++.dg/parse/error52.C: New.
* g++.dg/parse/error3.C: Adjust.
* g++.dg/parse/error36.C: Likewise.

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