1// { dg-do compile }
2
3// Origin: Giovanni Bajo <giovannibajo@libero.it>
4
5// Two-phase name lookup for address of member:
6// Detecting error during parsing
7
8struct S
9{
10  char i;
11};
12
13template<int S::*p>
14struct X
15{};
16
17template <class T>
18struct Foo
19{
20  X<&S::i> x;	// { dg-error "convert|no type" }
21};
22