Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
error41.C
blob: 21e8ffbc20ecd715d41554b9c7e9d6e4f2d0a0c1 [
file
] [
log
] [
blame
]
// PR c++/40370
// { dg-do compile }
struct
A
{
static
int
i
;
};
template
<int>
struct
B
{
int
x
[
A
::
i
];
// { dg-error "not an integral constant-expression" }
};