summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/no-value1.C
blob: 443a389ceebf5b1bf8de1179850af239be8745d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/5533
// { dg-do compile }

namespace N
{
    template <class T> struct A{};
}

template <class T> void foo(T) {}

void bar()
{
    foo(N::A); // { dg-error "" }
}