public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9452: ICE with templates (no better explanation possible)
@ 2003-01-29 14:39 lerdsuwa
0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2003-01-29 14:39 UTC (permalink / raw)
To: bangerth, gcc-bugs, gcc-prs, nobody
Synopsis: ICE with templates (no better explanation possible)
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Wed Jan 29 14:39:39 2003
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9452
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/9452: ICE with templates (no better explanation possible)
@ 2003-01-27 16:06 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-27 16:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 9452
>Category: c++
>Synopsis: ICE with templates (no better explanation possible)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 27 16:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
OK, this is #1 of 7 (this weekends batch of ICE findings :-( )
This crashes every gcc since at least 2.95 with a SegFault:
----------------------------------
template <int> struct Len { static const int val = 1; };
template <int> struct X {};
template <typename T> void foo(X<1>) {};
template <typename T, int N>
X<Len<N>::val-1>
foo(X<N>) {
foo<int> (X<N>());
};
int main () {
foo<int>(X<1>());
};
--------------------------------
g/a> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c bug32-1.cc
bug32-1.cc: In function `int main()':
bug32-1.cc:13: internal compiler error: Segmentation fault
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:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-29 14:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-29 14:39 c++/9452: ICE with templates (no better explanation possible) lerdsuwa
-- strict thread matches above, loose matches on Subject: below --
2003-01-27 16:06 bangerth
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).