☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-inhctor1.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-inhctor1.C
code
plain
raw
1
// PR c++/58511
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
constexpr A(int, int = i) {}
7
static const int i;
8
};
9
10
struct B : A
11
{
12
using A::A; // { dg-prune-output "A::i" }
13
};
14
15
constexpr B b(0); // { dg-error "" }