From cb3582ef4b76fdc66191f53fbb9c20fdb8c51e03 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 4 Aug 2015 14:54:07 +0000 Subject: [PATCH] re PR c++/66392 (rejects-valid: copy-initialization through user-defined conversion sequence fails) 2015-08-04 Paolo Carlini PR c++/66392 * g++.dg/init/explicit4.C: New. From-SVN: r226579 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/init/explicit4.C | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/init/explicit4.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index adce7ea4f1e..7f442854815 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-08-04 Paolo Carlini + + PR c++/66392 + * g++.dg/init/explicit4.C: New. + 2015-08-04 Bill Schmidt * gcc.target/powerpc/vec-cmp-sel.c: Avoid test failure on machines diff --git a/gcc/testsuite/g++.dg/init/explicit4.C b/gcc/testsuite/g++.dg/init/explicit4.C new file mode 100644 index 00000000000..4a73de52545 --- /dev/null +++ b/gcc/testsuite/g++.dg/init/explicit4.C @@ -0,0 +1,12 @@ +// PR c++/66392 + +struct B { }; + +struct A { + explicit A (A const&); + A (B const&); +}; + +int main () { + A x = B (); +} -- 2.30.2