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: unassig...@gcc.gnu.org

        ReportedBy: akrze...@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() {}

Reply via email to