This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20028] [3.4/4.0 Regression] class and then template class gives an ICE
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2005 17:55:26 -0000
- Subject: [Bug c++/20028] [3.4/4.0 Regression] class and then template class gives an ICE
- References: <20050217160539.20028.jcobyrne@cox.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-17 17:55 -------
The code is invalid.
But this is a regression from 3.3.3 where we did not ICE.
Reduced testcase:
class Foo;
template <typename T> class Foo { };
int main ()
{
Foo<int> x;
return 0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |error-recovery, ice-on-
| |invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2005-02-17 17:55:25
date| |
Summary|problem with protected |[3.4/4.0 Regression] class
|members in template |and then template class
|inheritance |gives an ICE
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20028