This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/53248] std::array<T,0> doesn't work when T is not default-constructible


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53248

--- Comment #9 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-10-04 00:02:33 UTC ---
Author: paolo
Date: Thu Oct  4 00:02:29 2012
New Revision: 192056

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192056
Log:
2012-10-03  Paolo Carlini  <paolo.carlini@oracle.com>

    PR libstdc++/53248
    * include/std/array (__array_traits<>): Add.
    (array<>): Allow for zero-size arrays of non default-constructible
    elements.
    * testsuite/23_containers/array/requirements/
    non_default_constructible.cc: New.
    * testsuite/23_containers/array/requirements/zero_sized_arrays.cc:
    Adjust.
    * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
    dg-error line numbers.
    * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
    Likewise.

Added:
   
trunk/libstdc++-v3/testsuite/23_containers/array/requirements/non_default_constructible.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/array
   
trunk/libstdc++-v3/testsuite/23_containers/array/requirements/zero_sized_arrays.cc
    trunk/libstdc++-v3/testsuite/23_containers/array/tuple_interface/get_neg.cc
   
trunk/libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc


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