Comment 1 for bug 1177790

Revision history for this message
Berthold Stoeger (bstoeger-a) wrote :

I get the same error message with std::unique_ptr:

#include <vector>

class A {};

class B {
public:
        std::unique_ptr<A> e;
        B &operator=(const B &d2);
};

void fun(std::unique_ptr<B> &arg)
{
        std::vector<B> v;
        v.push_back(std::move(*arg));
}

Compiled with "g++-4.7 -c -O3 -g -std=c++0x -Wall -o crash.o crash.C" results in:

Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cclP69wn.out file, please attach this to your bugreport.

(Note the ‘ sign in the first line)