repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor33.C
blob
4e612907a4236edec15add00fd7ba0b74bc0091f
1
// PR c++/77747
2
// { dg-do compile { target c++11 } }
3
4
class X {
5
public:
6
X() { }
7
X(int a) { }
8
};
9
10
class Y : public X { };
11
12
class Z : public Y {
13
using X::X; // { dg-error ".X. is not a direct base of .Z." }
14
};
15
16
int main()
17
{
18
Z z{3}; // { dg-error "no matching" }
19
}