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.
I get the same error message with std::unique_ptr:
#include <vector>
class A {};
class B {
std::unique_ ptr<A> e;
public:
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: //usr/share/ doc/gcc- 4.7/README. Bugs> for instructions.
‘
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
Preprocessed source stored into /tmp/cclP69wn.out file, please attach this to your bugreport.
(Note the ‘ sign in the first line)