/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jul 2013 09:28:09 +0000 (09:28 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jul 2013 09:28:09 +0000 (09:28 +0000)
commit4d0fc88b7bdc41a277d7eb1ae897ba9534235fe4
tree6a081aa5b0857c7f331dc62a775e0ff7273ee0b3
parent6af0092a44dced017e814d22ab885dfa68e202a6
/cp
2013-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51786
* parser.c (cp_parser_simple_declaration): Before calling shadow_tag
also check declares_class_or_enum.

/testsuite
2013-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51786
* g++.dg/cpp0x/pr51786.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200813 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr51786.C [new file with mode: 0644]