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

Reply via email to