[Bug c++/55432] New: Too much constexpr makes the compiler crash

akrzemi1 at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 21 21:57:00 GMT 2012


             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() {}

More information about the Gcc-bugs mailing list