public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55432] New: Too much constexpr makes the compiler crash
@ 2012-11-21 21:57 akrzemi1 at gmail dot com
  2012-11-21 22:09 ` [Bug c++/55432] " daniel.kruegler at googlemail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: akrzemi1 at gmail dot com @ 2012-11-21 21:57 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-22 10:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-21 21:57 [Bug c++/55432] New: Too much constexpr makes the compiler crash akrzemi1 at gmail dot com
2012-11-21 22:09 ` [Bug c++/55432] " daniel.kruegler at googlemail dot com
2012-11-22  9:54 ` paolo.carlini at oracle dot com
2012-11-22 10:23 ` paolo at gcc dot gnu.org
2012-11-22 10:24 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).