aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/no-typename1.C
blob: 42059ce7b80ab7421c8413c373d84e2672deb3ec (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/4903
// Origin: Dan Marinescu <theverylittleone@hotmail.com>
// { dg-do compile }

template <typename T> struct A
{
    template <typename U> struct B
    {
        A<T>::template B<U> foo(); // { dg-error "" }
    };
};