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
/
overload-conv-4.C
blob
d2663e6cb2038f13b0db8d8a171e3a7468798d68
1
// PR c++/90998 - ICE with copy elision in init by ctor and -Wconversion.
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wconversion" }
4
5
struct B;
6
7
struct A {
8
operator B();
9
};
10
11
struct B {
12
B(A const &rs);
13
B(B const &rs);
14
};
15
16
B
17
f (A x)
18
{
19
// C++14: we call B::B(A const &)
20
// C++17: now the same
21
return B(x);
22
}