Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;