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
Merge with main truk.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor18.C
blob
05735559a72ed996578786e92a423f5c12e1a15d
1
// PR c++/56358
2
// { dg-do compile { target c++11 } }
3
4
struct foo {
5
explicit foo(int) {}
6
};
7
8
template<typename T>
9
struct bar: T {
10
using T::T;
11
12
// Bad
13
explicit bar(): T(0) {}
14
15
void baz()
16
{
17
// Also bad
18
using qux = T;
19
}
20
};
21
22
bar<foo> b, b2(42);