[Bug c++/35727] Nested class of specialized template class bug

2008-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-12-29 04:06 --- You just want: struct A::B { B() { cout << __PRETTY_FUNCTION__ << endl; } }; Since you already specialized A, you don't need to specialize A::B. -- pinskia at gcc dot gn

[Bug c++/35727] Nested class of specialized template class bug

2008-03-27 Thread philippe at fornux dot com
--- Comment #2 from philippe at fornux dot com 2008-03-28 05:20 --- ** Then if I add the following: template <> struct A::B { B() { cout << __PRETTY_FUNCTION__ << endl; } }; ** I get: nes

[Bug c++/35727] Nested class of specialized template class bug

2008-03-27 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-03-28 00:25 --- This error message is correct as you specialized A but you also need to specialize the nested class as the non specialized version of the nested function will not be used. -- pinskia at gcc dot gnu dot org change