public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Jens.Maurer@gmx.net
To: gcc-gnats@gcc.gnu.org
Subject: c++/6440: template specializations cause ICE
Date: Wed, 24 Apr 2002 12:16:00 -0000	[thread overview]
Message-ID: <20020424190932.4479.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2002-04-24 19:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-24 12:16 Jens.Maurer [this message]
2002-05-14  6:43 lerdsuwa
2002-05-20  8:26 Jens Maurer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020424190932.4479.qmail@sources.redhat.com \
    --to=jens.maurer@gmx.net \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).