public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/5665: gcc goes into endless loop on bad code
Date: Tue, 12 Feb 2002 07:46:00 -0000	[thread overview]
Message-ID: <20020212154605.32362.qmail@sources.redhat.com> (raw)

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

From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, bergur@tern.is, gcc-bugs@gcc.gnu.org,
        nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/5665: gcc goes into endless loop on bad code
Date: Tue, 12 Feb 2002 17:06:04 +0100

 Hi,
 
 with gcc 3.1 20020202 (experimental) the code causes an ICE:
 
 [deleted lots of error messages]
 calc/fdps.h:865: parse error before `)' token
 calc/fdps.h:881: 'db_t' is used as a type, but is not defined as a type.
 calc/fdps.h:905: syntax error before `<' token
 calc/fdps.h:905: `MSG' was not declared in this scope
 calc/fdps.h:905: template argument 1 is invalid
 calc/fdps.h:905: tree check: expected class 't', have 'x' (error_mark) in 
    make_typename_type, at cp/decl.c:5689
 Please submit a full bug report, [etc.]
 
 The ICE can be reproduced with the following code snippet:
 
 ------------------snip here-----------------
 template<class T> class A
 {
     class B { X foo(); }; // illegal, X is undefined
 };
 
 template<class T> X A<T>::B::foo() {}
 ------------------snip here-----------------
 
 Just compile with "g++ -c" to the the following error message:
 
 bug.cpp:3: parse error before `)' token
 bug.cpp:6: syntax error before `<' token
 bug.cpp:6: `T' was not declared in this scope
 bug.cpp:6: template argument 1 is invalid
 bug.cpp:6: tree check: expected class 't', have 'x' (error_mark) in 
    make_typename_type, at cp/decl.c:5689
 Please submit a full bug report, [etc.]
 
 However, this reduced example compiles fine with gcc 3.0.3, i.e.
 a correct error message is emitted without ICE.
 
 Greetings,
 Volker Reichelt
 
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5665
 
 


             reply	other threads:[~2002-02-12 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-12  7:46 Reichelt [this message]
2002-05-31  8:16 Reichelt
2002-06-01  8:02 lerdsuwa

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=20020212154605.32362.qmail@sources.redhat.com \
    --to=reichelt@igpm.rwth-aachen.de \
    --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).