Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / non-dependent8.C
blob369e137317c7dc1b8d4dced6d2b1da223455bbb2
1 // { dg-do compile }
3 // Origin: Giovanni Bajo <giovannibajo@libero.it>
5 // Two-phase name lookup for address of member:
6 // Detecting error during parsing
8 struct S
10   char i;
13 template<int S::*p>
14 struct X
15 {};
17 template <class T>
18 struct Foo
20   X<&S::i> x;   // { dg-error "convert|no type" }