On 3 February 2012 21:28, Peter A. Felvegi wrote:
> on all tested gcc versions (4.4, 4.5, 4.6,4.7). There is definitely a type
> called 'Type' in struct 'Derived'. I'm not sure, the above code might be
> ill-formed, but then I'd like to see a specific error message.
I think the problem is that Der
Hello,
compiling the following:
---8<---8<---8<---8<---
template
struct Base
{
typename T::Typevar;
};
template
struct Derived : Base >
{
typedef U Type;
};
void foo()
{
Derived i;
}
---8<---8<---8<---8<---
gives the error
gcctempl.cpp: In instantiation of ‘