Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-inhctor1.C
blob: 98691101e860b90d6779cceaeb48ac479b0b9730 [
file
] [
log
] [
blame
]
// PR c++/58511
// { dg-do compile { target c++11 } }
struct
A
{
constexpr
A
(
int
,
int
=
i
)
{}
static
const
int
i
;
};
struct
B
:
A
{
using
A
::
A
;
// { dg-prune-output "A::i" }
};
constexpr
B b
(
0
);
// { dg-error "" }