public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6255: ICE with templatess
@ 2002-07-09 17:00 jason
0 siblings, 0 replies; 5+ messages in thread
From: jason @ 2002-07-09 17:00 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jason, reichelt
Synopsis: ICE with templatess
State-Changed-From-To: analyzed->closed
State-Changed-By: jason
State-Changed-When: Tue Jul 9 17:00:00 2002
State-Changed-Why:
fixed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6255
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/6255: ICE with templatess
@ 2002-07-07 22:25 mmitchel
0 siblings, 0 replies; 5+ messages in thread
From: mmitchel @ 2002-07-07 22:25 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jason, mmitchel, reichelt
Synopsis: ICE with templatess
Responsible-Changed-From-To: mmitchel->jason
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Sun Jul 7 22:25:06 2002
Responsible-Changed-Why:
A previous patch from Jason caused this regression.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6255
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/6255: ICE with templatess
@ 2002-07-05 9:48 mmitchel
0 siblings, 0 replies; 5+ messages in thread
From: mmitchel @ 2002-07-05 9:48 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, mmitchel, nobody, reichelt
Synopsis: ICE with templatess
Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Fri Jul 5 09:48:05 2002
Responsible-Changed-Why:
Trying to fix it.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6255
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/6255: ICE with templatess
@ 2002-05-24 8:01 lerdsuwa
0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa @ 2002-05-24 8:01 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, reichelt
Synopsis: ICE with templatess
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Fri May 24 07:58:04 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6255
^ permalink raw reply [flat|nested] 5+ messages in thread
* c++/6255: ICE with templatess
@ 2002-04-11 6:06 reichelt
0 siblings, 0 replies; 5+ messages in thread
From: reichelt @ 2002-04-11 6:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 6255
>Category: c++
>Synopsis: ICE with templatess
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu Apr 11 06:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Volker Reichelt
>Release: gcc 3.0.x, gcc 3.1 20020408 (prerelease)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
When compiling the following code I get an ICE:
----------------------------snip here-------------------
template <class T> struct A { typedef int X; };
template <class T> struct B { typedef A<T> Y; void f (Y::X); };
template <class T, class T1, class T2, class T3> struct C : public B<T> { void g (Y::X); };
template class B<int>;
----------------------------snip here-------------------
bug.cpp:2: warning: `typename A<T>::X' is implicitly a typename
bug.cpp:2: warning: implicit typename is deprecated, please see the
documentation for details
bug.cpp:3: warning: `typename C<T, T1, T2, T3>::Y::X' is implicitly a typename
bug.cpp:3: warning: implicit typename is deprecated, please see the
documentation for details
bug.cpp: In instantiation of `B<int>':
bug.cpp:4: instantiated from here
bug.cpp:2: internal error: Segmentation fault
Please submit a full bug report, [etc.]
It's a regression from 2.95.2 where the code compiled
without error. With 3.0.x the warnings disappear.
The ICE vanishes if I replace "Y::X" by "typename Y::X".
So it's actually an ice-on-deprecated-code.
The problem is the same as the reduced testcase in PR 3649.
The original testcase compiles fine now, so that PR 3649
was closed.
>How-To-Repeat:
g++ -c bug.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-07-10 0:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-09 17:00 c++/6255: ICE with templatess jason
-- strict thread matches above, loose matches on Subject: below --
2002-07-07 22:25 mmitchel
2002-07-05 9:48 mmitchel
2002-05-24 8:01 lerdsuwa
2002-04-11 6:06 reichelt
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).