This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
PR180
- To: gcc-bugs at gcc dot gnu dot org
- Subject: PR180
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sat, 5 May 2001 18:08:03 +0100
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