OSDN Git Service

/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Jun 2011 16:58:28 +0000 (16:58 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Jun 2011 16:58:28 +0000 (16:58 +0000)
commit4f05c8a94100f2d389be83f5ba12dbf2bf9925d3
tree690df81dd299d80b4a402768cd92d32f65638a8f
parentdd0dcb3e9b6569bdef41740a5c10347b300a1929
/cp
2011-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/44625
* decl2.c (build_anon_union_vars): Early return error_mark_node
for a nested anonymous struct.

/testsuite
2011-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/44625
* g++.dg/template/crash107.C: New.
* g++.dg/template/error17.C: Adjust.

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