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)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1177790
Title:
Internal compiler error: Error reporting routines re-entered
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1177790/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs