re PR c++/31489 (error says struct when it should say class)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 27 Sep 2011 21:52:19 +0000 (21:52 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 27 Sep 2011 21:52:19 +0000 (21:52 +0000)
commit2427db200d7e56fda1cf034ca0d1cb2999b5b970
tree223b7775cf09fa658f31f839b5f3885bcee2cc6b
parent82aa87223192a954c5bee4fc5d7dadae0d120b7e
re PR c++/31489 (error says struct when it should say class)

/cp
2011-09-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/31489
* parser.c (cp_parser_elaborated_type_specifier): For RECORD_TYPE,
set CLASSTYPE_DECLARED_CLASS.

/testsuite
2011-09-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/31489
* g++.dg/parse/error40.C: New.
* g++.dg/warn/incomplete1.C: Adjust.

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