Sign in
nest-open-source
/
stadia-controller
/
gcc-arm-none-eabi
/
3c699435f69c74a12f5fe18c0181fba6f1dd0479
/
.
/
src
/
gcc
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array5.C
blob: 00dfd6db4dfa2798ed15354dbce2a1c47e1c15b0 [
file
] [
log
] [
blame
]
// PR c++/56582
// { dg-do compile { target c++11 } }
// Reliable ICE
constexpr
int
n
[
3
]
=
{};
constexpr
int
k
=
n
[-
1
];
// { dg-error "array subscript" }
// Some random byte
constexpr
char
c
=
"foo"
[-
1000
];
// { dg-error "array subscript" }