This is the mail archive of the gcc@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]
Other format: [Raw text]

gcc 3.1: bug with inherited templates when specified by namespace


namespace other
{
template< class T >
class Frog
{
    ...        // doesn't matter what's here
};

}


class MrBlobbyBlab : public other::Frog        // erm... where's the
template parameter?
{
};


The problem is that the above code compiles with no warning or error and
puts god knows what into MrBlobbyBlab as a base class.  Put anything in
"Frog" and it just doesn't matter.

Put a "using namespace other" and change other::Frog to simply Frog and it
comes up with an error as it properly should.

This is with gcc v3.1 in Cygwin.  Can anyone else confirm this problem?

Regards

Dylan Cuthbert, Q-Games Ltd.



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