OSDN Git Service

/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Sep 2007 19:10:48 +0000 (19:10 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Sep 2007 19:10:48 +0000 (19:10 +0000)
commitb92702af236c3b309d20fbcf31d7da29bc051efd
treea35f69825bbd15b17669ab413bf46bfb7fecb456
parent7c08d8b69ae38139789b99123c6562a23d203343
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128145 138bc75d-0d04-0410-961f-82ee72b054a4
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]