diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-08-28 22:40:34 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-08-28 22:40:34 +0000 |
commit | 1ca66f7efec0dd2977b190a11f5ce8642a1e90b2 (patch) | |
tree | 41777c2f01235f1edc02affaed8dd5c2c337c778 /gcc/testsuite/g++.dg/cpp0x | |
parent | b208ba405685dc77a095a22db323323abb3bf846 (diff) | |
download | gcc-1ca66f7efec0dd2977b190a11f5ce8642a1e90b2.zip gcc-1ca66f7efec0dd2977b190a11f5ce8642a1e90b2.tar.gz gcc-1ca66f7efec0dd2977b190a11f5ce8642a1e90b2.tar.bz2 |
re PR c++/58255 ([C++11] explicit delegating constructor with no arguments wrongly rejected)
/cp
2013-08-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58255
* init.c (build_aggr_init): When init == void_type_node do not
set LOOKUP_ONLYCONVERTING.
/testsuite
2013-08-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58255
* g++.dg/cpp0x/dc7.C: New.
From-SVN: r202061
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/dc7.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/dc7.C b/gcc/testsuite/g++.dg/cpp0x/dc7.C new file mode 100644 index 0000000..e48741e --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/dc7.C @@ -0,0 +1,7 @@ +// PR c++/58255 +// { dg-do compile { target c++11 } } + +struct A { + explicit A() { } + A(int x) : A() { } +}; |