This is the mail archive of the gcc-prs@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++/8748: [3.3/3.4 regression] ICE in cp_expr_size at cp/cp-lang.c: 307


The following reply was made to PR c++/8748; it has been noted by GNATS.

>From reichelt@igpm.rwth-aachen.de  Mon Jan 13 01:00:12 2003
From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, aj@suse.de, gcc-bugs@gcc.gnu.org,
        nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/8748: [3.3/3.4 regression] ICE in cp_expr_size at cp/cp-lang.c: 307
Date: Sat, 11 Jan 2003 22:46:55 +0100

 Alas not a duplicate.
 
 So here's a reduced testcase
 
 --------------------------snip here-----------------------------
 struct A
 {
     int i;
 };
 
 struct B : A
 {
     virtual ~B();
 };
 
 struct C
 {
     B b[1];
 };
 
 void foo() { C().b[0].i; }
 --------------------------snip here-----------------------------
 
 which triggers the following ICE:
 
 PR8748.cc: In function `void foo()':
 PR8748.cc:16: internal compiler error: in cp_expr_size, at cp/cp-lang.c:304
 Please submit a full bug report, [etc.]
 
 Checked with gcc 3.3-20021230 and 3.4-20021230 (i.e. not fixed with the
 new parser). gcc 3.2.1 is not affected.
 
 Regards,
 Volker
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8748
 
 


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