This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/30302] [4.0/4.1/4.2/4.3 regression] ICE with invalid member in anonymous struct



------- Comment #5 from paolo at gcc dot gnu dot org  2007-09-05 19:10 -------
Subject: Bug 30302

Author: paolo
Date: Wed Sep  5 19:10:48 2007
New Revision: 128145

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128145
Log:
/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.

Added:
    trunk/gcc/testsuite/g++.dg/ext/anon-struct5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30302


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]