public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6440: template specializations cause ICE
@ 2002-04-24 12:16 Jens.Maurer
0 siblings, 0 replies; 3+ messages in thread
From: Jens.Maurer @ 2002-04-24 12:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 6440
>Category: c++
>Synopsis: template specializations cause ICE
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Wed Apr 24 12:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Jens Maurer
>Release: 3.0.4 and recent CVS checkout
>Organization:
>Environment:
Linux 2.4.17
>Description:
See ISO C++ core issue 336.
spec-example-c336.cc:14: Internal compiler error in lookup_template_class, at
cp/pt.c:3960
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:
template<class T1> struct A {
template<class T2> struct B {
template<class T3> void mf1(T3);
void mf2();
};
};
template<> template<class X>
struct A<int>::B {
template<class T> void mf1(T);
};
template<> template<> template<class T>
void A<int>::B<double>::mf1(T t) { }
template<class Y> template<>
void A<Y>::B<double>::mf2() { }
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/6440: template specializations cause ICE
@ 2002-05-20 8:26 Jens Maurer
0 siblings, 0 replies; 3+ messages in thread
From: Jens Maurer @ 2002-05-20 8:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/6440; it has been noted by GNATS.
From: Jens Maurer <Jens.Maurer@gmx.net>
To: lerdsuwa@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/6440: template specializations cause ICE
Date: Mon, 20 May 2002 16:15:49 +0200
14.7.3p18 appears to say that A<int>::B<X> is not the right
syntax, because A<int>::B is a genuine class template (for B),
and A<int>::B has not been declared previously.
Jens Maurer
lerdsuwa@gcc.gnu.org wrote:
>
> Synopsis: template specializations cause ICE
>
> State-Changed-From-To: open->analyzed
> State-Changed-By: lerdsuwa
> State-Changed-When: Tue May 14 06:43:14 2002
> State-Changed-Why:
> Confirmed, ICE on both 3.1 branch and main trunk. Perhaps
> the right syntax could be:
> template<> template<class X>
> class A<int>::B<X> {
> ^^^
>
> Both 3.1 and trunk work fine with the above code.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6440
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/6440: template specializations cause ICE
@ 2002-05-14 6:43 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-05-14 6:43 UTC (permalink / raw)
To: Jens.Maurer, gcc-bugs, gcc-prs, nobody
Synopsis: template specializations cause ICE
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Tue May 14 06:43:14 2002
State-Changed-Why:
Confirmed, ICE on both 3.1 branch and main trunk. Perhaps
the right syntax could be:
template<> template<class X>
class A<int>::B<X> {
^^^
Both 3.1 and trunk work fine with the above code.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6440
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-05-20 15:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-24 12:16 c++/6440: template specializations cause ICE Jens.Maurer
2002-05-14 6:43 lerdsuwa
2002-05-20 8:26 Jens Maurer
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).