Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / non-dependent10.C
blob0adac25f08da97de9348c0a00b8fa8fb467acf51
1 // { dg-do compile }
3 // Origin: Giovanni Bajo <giovannibajo@libero.it>
5 // Two-phase name lookup for address of member:
6 // Detecting overloading function error during parsing
8 struct S
10   int f(char);
11   int f(int);
14 template<int (S::*p)()>
15 struct X
16 {};
18 template <class T>
19 struct Foo
21   X<&S::f> x;   // { dg-error "convert|no type" }