blob: 773691a887cf7733e1cbe37fb0861beacb969de7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// DR 850 makes this valid
// { dg-do compile { target c++11 } }
// { dg-additional-options -fabi-compat-version=0 }
template<class T> struct A
{
int mem;
template<class U> decltype(U()+mem) f();
};
int i = A<int>().f<int>();
// { dg-final { scan-assembler "_ZN1AIiE1fIiEEDTplcvT__E3memEv" } }
|