public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: "Giovanni Bajo" <giovannibajo@libero.it>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/10108: [3.4 regression] Error recovering problem: tree checking ICE: expected var_decl, have error_mark in tsubst_decl
Date: Wed, 07 May 2003 11:06:00 -0000	[thread overview]
Message-ID: <20030507110600.21055.qmail@sources.redhat.com> (raw)

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

From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>,
	<nagano3@pop02.odn.ne.jp>,
	<nobody@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>
Cc:  
Subject: Re: c++/10108: [3.4 regression] Error recovering problem: tree checking ICE: expected var_decl, have error_mark in tsubst_decl
Date: Wed, 7 May 2003 13:03:01 +0200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10108
 
 Reduced snippet is:
 
 ---------------------------------------------------------------
 template <class>
 struct Foo
 {};
 
 template <class T>
 struct Bar : public Foo<T>
 {
     typedef Foo<T> base;
     typedef typename base::NON_EXISTENT INVALID_TYPE;
 
     template <class Q>
     Bar(Q q, INVALID_TYPE a)
         : base(a)
     {}
 };
 
 template struct Bar<void>;
 ---------------------------------------------------------------
 pr10108.cpp: In instantiation of `Bar<void>':
 pr10108.cpp:17:   instantiated from here
 pr10108.cpp:9: error: no type named `NON_EXISTENT' in `struct Foo<void>'
 pr10108.cpp:13: error: no type named `NON_EXISTENT' in `struct Foo<void>'
 pr10108.cpp:13: internal compiler error: tree check: expected var_decl, have
    error_mark in tsubst_decl, at cp/pt.c:5957
 Please submit a full bug report,
 
 This is ICE on error recovery, confirmed with 3.4 CVS 20030503. The same
 preprocessed source also generates totally different ICE-on-illegal for 3.2
 branch and 3.3 branch. I isolated and reported the 3.3 branch failure in
 c++/10594.
 
 Giovanni Bajo
 


                 reply	other threads:[~2003-05-07 11:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20030507110600.21055.qmail@sources.redhat.com \
    --to=giovannibajo@libero.it \
    --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).