B
Bernd Fuhrmann
Hi!
I just tried to write a little program, but GCC (Mingw 3.3.1) refused to
compile it. So I'd like to know if there's something wrong with my code
or if it is a bug in GCC.
---snip---
namespace Namespace {}
template <class TSomeType>
class TAlpha
{
public:
int Namespace;
};
template <class TSomeType>
class TBeta : public TAlpha<TSomeType>
{
public:
int method(int n) {Namespace=n;}
};
int main()
{
}
---snip---
Gcc complains about using a namespace "Namespace" as expression, while
it should in fact access TAlpha::Namespace. So, is it a bug in GCC or is
my code simply wrong?
TIA
Bernd Fuhrmann
I just tried to write a little program, but GCC (Mingw 3.3.1) refused to
compile it. So I'd like to know if there's something wrong with my code
or if it is a bug in GCC.
---snip---
namespace Namespace {}
template <class TSomeType>
class TAlpha
{
public:
int Namespace;
};
template <class TSomeType>
class TBeta : public TAlpha<TSomeType>
{
public:
int method(int n) {Namespace=n;}
};
int main()
{
}
---snip---
Gcc complains about using a namespace "Namespace" as expression, while
it should in fact access TAlpha::Namespace. So, is it a bug in GCC or is
my code simply wrong?
TIA
Bernd Fuhrmann