re PR c++/30302 (ICE with invalid member in anonymous struct)
authorPaolo Carlini <pcarlini@suse.de>
Wed, 5 Sep 2007 19:10:48 +0000 (19:10 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 5 Sep 2007 19:10:48 +0000 (19:10 +0000)
commit61fdc9d7460cf58d002cb91b5a3141dea69d9f48
treea35f69825bbd15b17669ab413bf46bfb7fecb456
parent13678df87b8f2c1e23fb02b5f8e5fbbc9ce32260
re PR c++/30302 (ICE with invalid member in anonymous struct)

/cp
2007-09-03  Paolo Carlini  <pcarlini@suse.de>

PR c++/30302
* semantics.c (finish_id_expression): Check that path != NULL_TREE
before using TYPE_BINFO on it.
* class.c (finish_struct_anon): Deal correctly with anonymous
structs (vs unions, as GNU extension) in error messages.

/testsuite
2007-09-03  Paolo Carlini  <pcarlini@suse.de>

PR c++/30302
* g++.dg/ext/anon-struct5.C: New.

From-SVN: r128145
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/anon-struct5.C [new file with mode: 0644]