This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55432] New: Too much constexpr makes the compiler crash
- From: "akrzemi1 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Nov 2012 21:56:37 +0000
- Subject: [Bug c++/55432] New: Too much constexpr makes the compiler crash
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55432
Bug #: 55432
Summary: Too much constexpr makes the compiler crash
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: akrzemi1@gmail.com
The following short code crashes the compiler:
struct tag_t{} tag{};
constexpr tag_t const& pass(tag_t & t)
{
return t;
}
struct S
{
constexpr S(tag_t) {};
};
struct T
{
S mem;
T( tag_t & args ) : mem(pass(args)) {}
};
T t(tag);
int main() {}