Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype65.C
blob: 85f635a91fbb9e064c900f41375658ecc85e4838 [
file
] [
log
] [
blame
]
// PR c++/71511
// { dg-do compile { target c++11 } }
template
<
typename
T
>
class
A
{
static
int
i
;
};
//okay: template < typename T > int A <T>::i = 100;
template
<
typename
T
>
int
decltype
(
A
<
T
>
())::
i
=
100
;
// { dg-error "decltype" }