public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Detlef Vollmann <dv@vollmann.ch>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/7605: ICE on template instatiation
Date: Wed, 23 Oct 2002 19:06:00 -0000	[thread overview]
Message-ID: <20021024020600.29766.qmail@sources.redhat.com> (raw)

The following reply was made to PR c++/7605; it has been noted by GNATS.

From: Detlef Vollmann <dv@vollmann.ch>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, dv@vollmann.ch,
        gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gdr@gcc.gnu.org
Cc:  
Subject: Re: c++/7605: ICE on template instatiation
Date: Thu, 24 Oct 2002 03:57:22 +0200

 This is a multi-part message in MIME format.
 
 --------------A7FE72036C01B8E59896182
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 The State of c++/7605 is still at "feedback", though
 I don't know why.  And the class is "ice-on-illegal-code",
 though it should be "ice-on-legal-code".
 
 I have attached a short program that is clearly legal
 and that produces the same problem.
 
 Detlef
 
 -- 
 Detlef Vollmann
 vollmann engineering gmbh           Tel: +41-41-4120911
 P.O. Box 5106                       Fax: +41-41-4120912
 CH-6000 Luzern 5 / Switzerland      eMail: dv@vollmann.ch
 
 --------------A7FE72036C01B8E59896182
 Content-Type: text/plain; charset=us-ascii; name="test.cc"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline; filename="test.cc"
 
 template <class T> class Base1 { public: T t; };
 template <class U> class Base2 { public: U u; };
 
 template <class T, class A>
 class Map
 {
 public:
     T t;
     A a;
 };
 
 template <int id>
 struct Types
 {
     template <typename T>
     struct Templated
     {
         typedef Base1<T> Allocator;
     };
 
     typedef Base2<char> ClassifiedString;
 };
 
 template <int id>
 struct Impl
 {
     typedef typename Types<id>::ClassifiedString String;
     typedef Base2<String> Wrapped;
     typedef typename Types<id>::Templated<Wrapped>::Allocator Allocator;
 
     Map<String, Allocator> pMap;
 };
 
 int main()
 {
     Impl<0> impl;
 
     return 0;
 }
 
 --------------A7FE72036C01B8E59896182--
 


             reply	other threads:[~2002-10-24  2:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-23 19:06 Detlef Vollmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-12-13  5:15 reichelt
2002-08-16  5:25 Gabriel Dos Reis
2002-08-16  5:16 gdr
2002-08-15 14:26 dv

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=20021024020600.29766.qmail@sources.redhat.com \
    --to=dv@vollmann.ch \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@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).