OSDN Git Service

/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Mar 2013 11:48:53 +0000 (11:48 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Mar 2013 11:48:53 +0000 (11:48 +0000)
commitfa263651e479c397f5c62bce7f367561a3ff8dbb
tree78feebbe7fab11fbfe4ad32172081d577c5af1a5
parent6b1556ff248c61446130566be0eea14d5ab2344f
/cp
2013-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/56534
* parser.c (cp_parser_elaborated_type_specifier): Don't call
check_elaborated_type_specifier when TREE_CODE (decl) != TYPE_DECL.
* decl.c (check_elaborated_type_specifier): Tidy.

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

PR c++/56534
* g++.dg/template/crash115.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@196573 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash115.C [new file with mode: 0644]