projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.8.1
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor18.C
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);