Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array27.C
blob: 1234caef31d1c861b2f5f9ba052edc16cf05f73e [
file
] [
log
] [
blame
]
// PR c++/96282
// { dg-do compile { target c++11 } }
struct
e
{
bool
v
=
true
;
e
*
p
=
this
;
};
template
<
int
N
>
struct
b
{
e m
[
N
][
N
];
};
template
<
int
N
>
struct
t
:
b
<
N
>
{
constexpr
t
()
:
b
<
N
>()
{}
};
constexpr
t
<
1
>
h1
;
constexpr
t
<
42
>
h2
;