------- Comment #2 from reichelt at gcc dot gnu dot org  2006-08-04 21:02 
-------
The ICE got fixed on mainline, 4.1 branch, and 4.0 branch by
Steve Ellcey's patch for PR 28432:
http://gcc.gnu.org/ml/gcc-patches/2006-07/msg01171.html

We now get:

bug.cc:3: error: type 'typename TT<int>::sss' is not derived from type
'QQQ<TT>'
bug.cc:3: error: expected ';' before 'plcU'

That's basically what we got before GCC 3.4.3:

bug.cc:3: error: type `typename TT<int>::sss' is not derived from type
`QQQ<TT>'
bug.cc:3: error: ISO C++ forbids declaration of `OOO' with no type
bug.cc:3: error: template-id `OOO<char>' used as a declarator
bug.cc:3: error: expected `;' before "plcU"

However, that's still not a very good diagnostic.
So I'm leaving the PR open as diagnostic PR.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |diagnostic
            Summary|[4.0/4.1/4.2 Regression] Bad|Bad diagnostic with missing
                   |behaviour when missing      |"typename" keyword
                   |"typename" keyword.         |
   Target Milestone|4.0.4                       |---


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

Reply via email to