This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60980] [4.9/4.10 Regression] ICE in build_special_member_call, at cp/call.c:7447
- From: "ppluzhnikov at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Apr 2014 07:01:16 +0000
- Subject: [Bug c++/60980] [4.9/4.10 Regression] ICE in build_special_member_call, at cp/call.c:7447
- Auto-submitted: auto-generated
- References: <bug-60980-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60980
--- Comment #4 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
(In reply to Andrew Pinski from comment #3)
> Note I think this code is invalid due to the struct not having a size.
Making the array non-empty makes no difference:
struct x0
{
x0 () = default;
};
struct x1
{
x0 x2[1];
void x3 ()
{
x1 ();
}
};
g++ -c -std=c++11 t.ii
t.ii: In member function âvoid x1::x3()â:
t.ii:10:13: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have array_type in build_special_member_call, at
cp/call.c:7447
... same as above.