From: François Dumont Date: Wed, 1 Dec 2010 20:51:38 +0000 (+0100) Subject: 2.cc: Fix to explicitely invoke the copy construtor with or without C++0x mode. X-Git-Tag: releases/gcc-4.6.0~2204 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7165791eb50fbb2668da90724bc115a524b3cd54;p=thirdparty%2Fgcc.git 2.cc: Fix to explicitely invoke the copy construtor with or without C++0x mode. 2010-12-01 François Dumont * testsuite/23_containers/deque/cons/2.cc: Fix to explicitely invoke the copy construtor with or without C++0x mode. * testsuite/23_containers/vector/cons/4.cc: Likewise. From-SVN: r167355 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6e7b5255c25c..933fb231b2e8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2010-12-01 François Dumont + + * testsuite/23_containers/deque/cons/2.cc: Fix to explicitely invoke + the copy construtor with or without C++0x mode. + * testsuite/23_containers/vector/cons/4.cc: Likewise. + 2010-12-01 Rainer Orth * scripts/extract_symvers.pl: New file. diff --git a/libstdc++-v3/testsuite/23_containers/deque/cons/2.cc b/libstdc++-v3/testsuite/23_containers/deque/cons/2.cc index 23600284e72b..4df44f8eb72e 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/cons/2.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/cons/2.cc @@ -454,7 +454,8 @@ test_default_ctor_exception_safety() // test try { - X a(7); + T ref; + X a(7, ref); VERIFY( false ); } catch (...) diff --git a/libstdc++-v3/testsuite/23_containers/vector/cons/4.cc b/libstdc++-v3/testsuite/23_containers/vector/cons/4.cc index 0c3dcf3b4692..27d496ac9618 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/cons/4.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/cons/4.cc @@ -50,7 +50,8 @@ test_default_ctor_exception_gurantee() // run test try { - X a(7); + T ref; + X a(7, ref); VERIFY(false); } catch (...)