------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-24 01:00 ------- 4.2.0 rejects the code: t.cc:10: error: 'Crash' is not a member of 'T'
This code is invalid. 3.3 gave: t.cc:10: error: typename type `typename Base<T>::Derived::Crash' declared `friend' ICC gives: t.cc(10): error: a qualified friend template declaration must refer to a specific previously declared template friend struct Base<T>::Derived::Crash; ^ compilation aborted for t.cc (code 2) -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Keywords| |ice-on-invalid-code Known to fail| |3.0.4 4.0.0 Summary|[4.0.3 regression] ICE with |[4.0 Regression] ICE with |nested template friend |nested template friend http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28827