view gcc/testsuite/g++.dg/cpp0x/constexpr-decl.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// PR c++/46930
// { dg-do compile { target c++11 } }

struct S {
  static constexpr int size;	// { dg-error "must have an initializer" "must have" }
};

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