public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/10706] ICE in mangle_class_name_for_template
       [not found] <20030509160600.10706.bangerth@dealii.org>
@ 2003-05-27  1:08 ` reichelt@gcc.gnu.org
  2004-01-26  9:48 ` reichelt at gcc dot gnu dot org
  1 sibling, 0 replies; 2+ messages in thread
From: reichelt@gcc.gnu.org @ 2003-05-27  1:08 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


reichelt@gcc.gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
         Resolution|                            |FIXED


------- Additional Comments From reichelt@gcc.gnu.org  2003-05-27 00:29 -------
A reduced testcase is the following:

--------------------------------------------
template <typename> struct A
{
    template <typename> struct B {};
};

struct C
{
    typedef X Y;
    A<int>::B<Y> b;
};
--------------------------------------------

The error message from gcc 3.3 is:

PR10706.cc:8: error: ISO C++ forbids declaration of `X' with no type
PR10706.cc:8: error: parse error before `;' token
PR10706.cc:9: error: `Y' was not declared in this scope
PR10706.cc:9: error: template argument 1 is invalid
PR10706.cc:9: internal compiler error: tree check: expected tree_vec, have 
   error_mark in mangle_class_name_for_template, at cp/pt.c:3845
Please submit a full bug report, [etc.]

The code crashes every release since gcc 2.95.x.
Since it is not a regression and the problem is fixed on mainline,
I close the PR.




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/10706] ICE in mangle_class_name_for_template
       [not found] <20030509160600.10706.bangerth@dealii.org>
  2003-05-27  1:08 ` [Bug c++/10706] ICE in mangle_class_name_for_template reichelt@gcc.gnu.org
@ 2004-01-26  9:48 ` reichelt at gcc dot gnu dot org
  1 sibling, 0 replies; 2+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-01-26  9:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-01-26 09:48 -------
Now also fixed for 3.3.3 (most likely by Kriang's fix for PR 10555).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.3.3


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-26  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030509160600.10706.bangerth@dealii.org>
2003-05-27  1:08 ` [Bug c++/10706] ICE in mangle_class_name_for_template reichelt@gcc.gnu.org
2004-01-26  9:48 ` reichelt at gcc dot gnu dot org

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).