simply produced namespace bug

David Baraff deb@pixar.com
Sun Mar 7 22:34:00 GMT 1999


Command line: /data/deb/local/bin/g++ -v --save-temps -c simple.cpp
Version:       gcc version egcs-2.93.11 19990307 (gcc2 ss-980929 experimental)
			Reading specs from
/data/deb/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.93.11/specs 

C++ file:
// ----------------------------------
namespace X {
    template <class T> class foo;
}

template <class T>
class X::foo {
    T worthless;
};

// -----------------------------------

(Incorrect) error messages from GCC:
simple.cpp:6: `X' does not have a nested type named `foo'
simple.cpp:6: template class without a name


More information about the Gcc-bugs mailing list