☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor9.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/inh-ctor9.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
class A
4
{
5
int i;
6
protected:
7
A(int i): i(i) {}
8
};
9
10
struct B: A
11
{
12
using A::A;
13
};
14
15
B b(42); // { dg-error "this context" }