public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/17068] [3.4/3.5 regression] ICE: tree check: expected class 'd', have 'x' (identifier_node) in dependent_template_p, at cp/pt.c:12043
Date: Tue, 17 Aug 2004 21:11:00 -0000	[thread overview]
Message-ID: <20040817211155.8399.qmail@sourceware.org> (raw)
In-Reply-To: <20040817192847.17068.v.haisman@sh.cvut.cz>


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-17 21:11 -------
> ------- Additional Comments From bangerth at dealii dot org  2004-08-17 20:15
-------
> Well done, Volker: this intriguing anagramatic sequence in your testcase 
>   ()<0>() 
> clearly asks for an award for "art in testcases" :-) 

Well, I couldn't help it - I had to find a really symmetric testcase. :-)
And here it is (it's a modified version from PR 16971). You can read
it forwards and backwards (well, you have to revert the braces):

=============================================
namespace { ; int tni ; int tni ; } ecapseman
=============================================

The error message mainline used to give was:

:1:C.C:1: error: redefinition of `int <unnamed>::tni'
:1:C.C:1: error: `int <unnamed>::tni' previously declared here
:1:C.C:1: internal compiler error: tree check: expected class 'd', have 'x'
(error_mark) in cp_parser_init_declarator, at cp/parser.c:10717
Please submit a full bug report, [etc.]


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17068


  parent reply	other threads:[~2004-08-17 21:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-17 19:28 [Bug c++/17068] New: " v dot haisman at sh dot cvut dot cz
2004-08-17 19:55 ` [Bug c++/17068] [3.4/3.5 regression] " reichelt at gcc dot gnu dot org
2004-08-17 20:15 ` bangerth at dealii dot org
2004-08-17 20:23 ` pinskia at gcc dot gnu dot org
2004-08-17 21:11 ` reichelt at gcc dot gnu dot org [this message]
2004-08-17 21:44 ` bangerth at dealii dot org
2004-08-18  3:28 ` mmitchel at gcc dot gnu dot org
2004-08-18 18:25 ` cvs-commit at gcc dot gnu dot org
2004-08-18 18:34 ` cvs-commit at gcc dot gnu dot org
2004-08-18 18:34 ` mmitchel at gcc dot gnu dot org

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=20040817211155.8399.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).