blob: 4605b4be902b247a135a1cfc7ed80016b7606975 (
plain)
1
2
3
4
5
6
7
8
9
|
// PR c++/56582
// { dg-do compile { target c++11 } }
// Reliable ICE
constexpr int n[3] = {};
constexpr int k = n[-1]; // { dg-error "negative" }
// Some random byte
constexpr char c = "foo"[-1000]; // { dg-error "negative" }
|