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-ctor30.C
blob
494dd91bb80cdd4a1018748de977ac907f2055c6
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
A(double);
6
};
7
8
struct B: A
9
{
10
B(short);
11
using A::A;
12
};
13
14
int main()
15
{
16
B b(1); // { dg-error "ambiguous" }
17
}