blob: 3a7cee4156add525e286dbb10f01aad940b79acc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// PR c++/49042
// { dg-do compile { target c++11 } }
template <class T>
class A
{
T p;
public:
template <class U> auto f() -> decltype(+p) { return p; }
};
int main()
{
A<int>().f<int>();
}
|