blob: 8aee8fd481a6146d48ffb5f39559752eb6a442a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// PR c++/109431
// { dg-do run { target c++11 } }
struct RangeLimits
{
int low = 0;
int high = 1;
constexpr RangeLimits() { }
};
template <int>
int parameterLimits(void)
{
static RangeLimits constexpr param_limits[2] = {};
if (param_limits[0].low != 0
|| param_limits[0].high != 1
|| param_limits[1].low != 0
|| param_limits[1].high != 1)
__builtin_abort ();
auto const &limits = param_limits[1];
return 0;
}
auto s = parameterLimits<1>();
int
main ()
{
}
|