[Bug c++/57011] New: Compiling _GLIBCXX_CONCEPT_CHECKS rejects vector<unique_ptr<foo>>

h.chage at suremail dot info gcc-bugzilla@gcc.gnu.org
Fri Apr 19 23:18:00 GMT 2013


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

             Bug #: 57011
           Summary: Compiling _GLIBCXX_CONCEPT_CHECKS rejects
                    vector<unique_ptr<foo>>
    Classification: Unclassified
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: h.chage@suremail.info


I read about _GLIBCXX_CONCEPT_CHECKS on 
http://gcc.gnu.org/onlinedocs/libstdc++/manual/ext_compile_checks.html
(it mentions that the upcoming C++ standard contains concepts, which did not
happen with C++11, so it is probably wrong) and tried to test it with test.cc:

#include <memory>
#include <vector>
int main() { std::vector<std::unique_ptr<int>> F; }

Compiled with `g++ -std=c++11 -D_GLIBCXX_CONCEPT_CHECKS test.cc` it fails,
though. :-(



More information about the Gcc-bugs mailing list