This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PR180


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]