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



             Bug #: 55866

           Summary: [4.8 Regression] #include <auto_ptr.h> in C++11 mode

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: libstdc++

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: ja...@gcc.gnu.org





echo '#include <auto_ptr.h>' | g++ -std=gnu++0x -S -o /tmp/a.s -xc++ -

worked in 4.7, but doesn't work any longer in 4.8.  Apparently the snapper

package does this in one of the translation units (no idea why).

Is that an error in the package and it isn't supposed to include that header,

or is that something to fix on the libstdc++ side?

The problem started with

http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190109

where auto_ptr.h relies on a couple of headers it doesn't include itself (so

_Lock_policy, __shared_count etc. aren't defined).

Reply via email to