NB: The file compiles correctly if the necessary copy constructor is
added:

#include <memory>
#include <vector>

class A {};

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

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

-- 
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

Reply via email to