PR180

Neil Booth neil@daikokuya.demon.co.uk
Sat May 5 10:08:00 GMT 2001


Would a C++ expert check out PR 180.  It's short and simple.
It used to segfault g++; it no longer does.  Great!

However, the submitter claims the code is incorrect, and g++ compiles
it without diagnostics.  It would be nice to re-word / close this PR;
whichever is appropriate - I don't know enough C++ to call it.

The code is below.

Neil.

class A
 {
   public:
     template <class T> class B 
     {
       public:
	 void f(void);
	 T               data;
     };
 };

 // template <class T> void A::B<T>::f(void) {}    // Correct definition
 void A::B::f(void) {}    // error



More information about the Gcc-bugs mailing list