This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28505] [4.0/4.1/4.2 regression] ICE with invalid constructors
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2006 21:35:43 -0000
- Subject: [Bug c++/28505] [4.0/4.1/4.2 regression] ICE with invalid constructors
- References: <bug-28505-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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