blob: 0d97cb868cbf4c07734ce89723cd6874cbbd08bf [file] [log] [blame]
// PR c++/48593
template <typename T> struct foo
{
T data;
};
template<typename T> struct bar: public foo<T>
{
void some_func()
{
T* ptr = &(foo<T>::data);
}
};
int main()
{
bar<int>().some_func();
}