https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62050
Bug ID: 62050
Summary: Internal compiler error: Error reporting routines
re-entered with std::make_shared on abstract class
Product: gcc
Version: 4.7.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: radoslaw.chmielarz at gmail dot com
Created attachment 33268
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33268&action=edit
Preprocessed source file
Hi all,
An internal compiler error is occuring when trying to create a shared_ptr using
make_shared on an abstract class.
The following error message was displayed:
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <EXP GCC URL> for instructions.
Preprocessed source stored into /tmp/cc6gFr0r.out file, please attach this to
your bugreport.
The code for bug reproduction is the following:
-----------------------
#include <memory>
class AbstractClass
{
virtual ~AbstractClass() {}
virtual void f() = 0;
};
class MakeSharedInternalCompilerError
{
std::shared_ptr<AbstractClass> m_member =
std::make_shared<AbstractClass>();
};
------------------------
The preprocessed source file is added as an attachment.
Cheers,
Radek