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

Reply via email to