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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor37.C
blob
a14874f4632769efff414959630f81f80b4c0452
1
// PR c++/94751
2
// { dg-do compile }
3
// { dg-options "-w" }
4
5
struct A {
6
A(float);
7
};
8
9
template<typename T>
10
struct B : A {
11
using A::A;
12
13
struct C {
14
C(int);
15
};
16
17
C c{ "foo" }; // { dg-error "invalid conversion" }
18
};
19
20
struct S { S(B<A> *); };
21
22
S
23
fn ()
24
{
25
return S(new B<A>(10.5));
26
}