Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype9.C
blob: f6cfb0c67c160b63b3ea6e54e7e01d9f7b26e048 [
file
] [
log
] [
blame
]
// PR c++/34271
// { dg-do compile { target c++11 } }
template
<int>
struct
A
{
// { dg-message "defined here" }
static
int
i
;
// { dg-message "candidate" }
};
template
<
int
N
>
int
A
<
N
>::
i
(
decltype
(
A
::
i
));
// { dg-error "no declaration" }