public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46930] New: [C++0x] ICE with static constexpr data member
@ 2010-12-13 21:24 paolo.carlini at oracle dot com
  2010-12-13 21:24 ` [Bug c++/46930] " paolo.carlini at oracle dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-12-13 21:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46930

           Summary: [C++0x] ICE with static constexpr data member
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: paolo.carlini@oracle.com


Today was playing with this snippet inspired by an old constexpr paper:

struct S {
  static constexpr int size;
};

const int limit = 2 * S::size;
constexpr int S::size = 256;

u3.cc:5:26: internal compiler error: in decl_constant_var_p, at cp/decl2.c:3563


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

end of thread, other threads:[~2010-12-15  6:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-13 21:24 [Bug c++/46930] New: [C++0x] ICE with static constexpr data member paolo.carlini at oracle dot com
2010-12-13 21:24 ` [Bug c++/46930] " paolo.carlini at oracle dot com
2010-12-15  0:35 ` jason at gcc dot gnu.org
2010-12-15  6:03 ` paolo.carlini at oracle dot com
2010-12-15  6:05 ` 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).