repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/79143
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
inh-ctor32.C
blob
7ce85b0af2edcbfa384d2251aeabe94b60791c66
1
// { dg-do compile { target c++11 } }
2
3
struct B;
4
struct A
5
{
6
A(const B&, int = 0);
7
};
8
9
struct B: A
10
{
11
using A::A;
12
B(B&);
13
};
14
15
extern const B b;
16
B b2{b}; // { dg-error "" }