This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20028] [3.4/4.0 Regression] class and then template class gives an ICE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]