public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10218: g++ 3.4: ICE in make_decl_rtl for invalid code
@ 2003-03-26 9:57 snyder
0 siblings, 0 replies; only message in thread
From: snyder @ 2003-03-26 9:57 UTC (permalink / raw)
To: gcc-gnats
>Number: 10218
>Category: c++
>Synopsis: g++ 3.4: ICE in make_decl_rtl for invalid code
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Wed Mar 26 09:56:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: scott snyder
>Release: 3.4 20030325 (experimental)
>Organization:
>Environment:
System: Linux karma 2.4.19-emp_2419p5a829i #1 Tue Sep 3 17:42:17 EST 2002 i686 i686 i386 GNU/Linux
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long --enable-languages=c,c++,f77 : (reconfigured)
>Description:
g++ dies compiling the (invalid) code below with -O3:
$ g++ -c x.cc -O3
x.cc:11: error: redefinition of `void generic_wedge::add_u_chan()'
x.cc:2: error: `void generic_wedge::add_u_chan()' previously defined here
x.cc:11: error: no `void generic_wedge::add_u_chan()' member function declared
in class `generic_wedge'
x.cc: In function `void foo(generic_wedge*)':
x.cc:12: internal compiler error: in make_decl_rtl, at varasm.c:790
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$
>How-To-Repeat:
Compile with -O3:
---------------------------
struct generic_wedge{
void add_u_chan() {}
int num_uchan;
};
void foo (generic_wedge* w)
{
w->add_u_chan();
}
void generic_wedge::add_u_chan(){
if (num_uchan < 10) ;
}
---------------------------
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-26 9:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-26 9:57 c++/10218: g++ 3.4: ICE in make_decl_rtl for invalid code snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).