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++/28505] [4.0/4.1/4.2 regression] ICE with invalid constructors



------- Comment #1 from reichelt at gcc dot gnu dot org  2006-07-26 21:35 -------
A similar testcase crashes in a different position:

==========================
struct A
{
    A : ();
    A : (int);
};

struct B
{
    char c;
    A a;
};

B b = (B){0};
==========================

On mainline it causes a segfault, on the 4.1 branch an ICE in
count_type_elements, at expr.c:4647


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.4


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


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