The error is actually more to do with trying to call a class constructor
inside of make_shared that results in an error. For example, the
following will also raise an internal compiler error:

#include <memory>

class Foo
{
    public:
        virtual ~Foo () = default;
        virtual void bar () = 0;
};

int main ()
{
    auto foo = std::make_shared <Foo> ();
    return 0;
}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1165732

Title:
  GCC 4.7.3 internal compiler error when using std::make_shared

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1165732/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to