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]

Re: c++/7734: ICE in cp_expr_size, at cp/cp-lang.c:130


Hi,

the problem can be reproduced with the following code snippet:

-------------------------snip here-------------------------
struct A
{
    A ();
    A (const A&);
    A& operator= (const A&);
};

struct { A a; } foo = { A() };
-------------------------snip here-------------------------

(with A==QString and foo==g_rgModInfo in the original example).

When compiling this with the main trunk (gcc 3.3 20020816) I get the
following error (on i686-pc-linux-gnu and mips-sgi-irix6.5):

PR7734.cc: In function `void __static_initialization_and_destruction_0(int, 
   int)':
PR7734.cc:8: internal compiler error: Internal compiler error in cp_expr_size, 
   at cp/cp-lang.c:302
Please submit a full bug report, [etc.]

This is a regression since the code compiles fine with gcc 3.0.x, 3.1
and 3.2.

Greetings,
Volker Reichelt

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7734



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