This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]