c++0x tests fixes

François Dumont francois.cppdevs@free.fr
Wed Dec 1 20:59:00 GMT 2010


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.
>    
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gnu++0x.patch
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20101201/d647bae2/attachment.ksh>


More information about the Libstdc++ mailing list