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

            Bug ID: 57414
           Summary: Internal Compiler error when using std::mutex
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: r...@ramses-pyramidenbau.de

Created attachment 30192
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30192&action=edit
Main.ii

Hi,

This is the Code i tried to compile:
(main.cpp)

#include <mutex>
#include <memory>

class Foo {
private:
        std::mutex _mutex;
};

int main(void) {
  auto i = std::make_shared<Foo>( Foo() );
}

Compiled with:
g++ -save-temps -v -o out main.cpp -std=c++11 2> foo

I got an internal compiler error.

Compiler's Output:
http://pastebin.com/UcvkzrnC

main.ii is attached.

Thanks in advance!

Reply via email to