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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
inh-ctor25.C
blob
66cd2dabb0d26ab949ce537a1a20deb8c7cc4e1d
1
// Testcase from P0136
2
// { dg-do compile { target c++11 } }
3
4
struct M { M(); M(int); };
5
struct N : M { using M::M; };
6
struct O : M {};
7
struct P : N, O { using N::N; using O::O; };
8
P p(0); // OK: use M(0) to initialize N's base class,
9
// use M() to initialize O's base class