This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48211] [C++0x] Segment Fault When Compiling
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 20 Mar 2011 16:56:00 +0000
- Subject: [Bug c++/48211] [C++0x] Segment Fault When Compiling
- Auto-submitted: auto-generated
- References: <bug-48211-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48211
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-20 16:55:55 UTC ---
The bug reporting guidelines request that you don't upload an archive of files.
The contained source file is:
#include <list>
#include <memory>
#include <sstream>
struct stmt_base;
template <typename _RawType>
struct sptr
: public std::unique_ptr<_RawType>
{
typedef std::unique_ptr<_RawType> base_type;
typedef typename base_type::pointer pointer;
typedef typename base_type::deleter_type deleter_type;
sptr() = default;
};
struct block
{
std::list<sptr<stmt_base const>> _stmts;
};
struct stmt_base {};
struct branch
: public stmt_base
{
branch(sptr<stmt_base const> c);
sptr<stmt_base const> const alternative;
};
I can't reproduce the crash on x86_64-linux