This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++0x tests fixes


Attached patch applied.

2010-11-22 François Dumont <francois.cppdevs@free.fr>

* 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.



On 11/29/2010 10:45 PM, Paolo Carlini wrote:
Hi,
     This is some feedback on tests run in C++0x mode with or without
debug mode.

First failures without debug mode:

23_containers/vector/cons/4.cc
23_containers/deque/cons/2.cc

The code was calling vector and deque constructor taking a size.
Before C++0x it meant contruct N instances as the copy of a default
constructed instance. In C++0x it means contruct N default constructed
instance. I change the code to make copy constructor invocation explicit.
The changes to the testcases are fine. Please post the ChangeLog entry
and send the patch to gcc-patches too. In principle it would be a good
idea to also add a testcase for the behavior mandated by C++0x in terms
of number of copies. At the time, I think I added C++0x testcases, but
only checking that default-constructible, non-copy-constructible types
are fine.

Attachment: gnu++0x.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]