Unnamed
public text v1 · immutabletemplate<class T>
class A {
T x;
public:
class B {
public:
T y;
};
B f();
};
template<class T>
A<T>::B A<T>::f() {
return B();
}
int main() {
A<int> a;
return 0;
}
-------------------------------------------------------------------------------------------
test.cpp:26: error: expected constructor, destructor, or type conversion before "A"