public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8149: internal error: Segmentation fault
@ 2002-10-23 13:36 reichelt
0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2002-10-23 13:36 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, sneechy
Synopsis: internal error: Segmentation fault
State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Wed Oct 23 13:36:45 2002
State-Changed-Why:
Confirmed.
The example can be reduced a little bit further:
-------------------------snip here-------------------------
struct B { template <typename U> struct C; };
template <typename T> struct A { typedef typename T::C V; };
A<B>::V p;
-------------------------snip here-------------------------
Compiling this with "g++ -c" using the 3.2-branch or the main trunk
results in an ICE (checked on i686-pc-linux-gnu). With gcc 3.0.x or
2.95.x I get an error message:
PR8149.cc:3: aggregate `B::C<U> p' has incomplete type and cannot be
initialized
PR8149.cc:3: storage size of `p' isn't known
Changing "struct C;" to "struct C{};" in the first line to get rid of this
message (the rest of the code still remains illegal) causes gcc 3.0.x to
issue an ICE and 2.95.x to issue an assembler error.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8149
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/8149: internal error: Segmentation fault
@ 2002-10-04 15:16 sneechy
0 siblings, 0 replies; 2+ messages in thread
From: sneechy @ 2002-10-04 15:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 8149
>Category: c++
>Synopsis: internal error: Segmentation fault
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Fri Oct 04 15:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: sneechy@hotmail.com
>Release: gcc version 3.2 (mingw special 20020817-1)
>Organization:
>Environment:
Windows XP, gcc configure options: --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared
>Description:
The following four lines of code:
#include <typeinfo>
struct B { template <typename U> struct C; };
template <typename T> struct A { typedef typename T::C V; };
void f () { A<B>::V p; }
Result in an internal compiler error:
"internal error: Segmentation fault"
>How-To-Repeat:
Compile the four lines of code (see problem description).
>Fix:
I don't have a clue..
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-23 20:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-23 13:36 c++/8149: internal error: Segmentation fault reichelt
-- strict thread matches above, loose matches on Subject: below --
2002-10-04 15:16 sneechy
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).