8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-redeclaration1.C
Paolo Carlini cce9196f4d re PR c++/59123 ([c++11] can't forward-declare an object later defined constexpr)
/cp
2013-11-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59123
	* decl.c (validate_constexpr_redeclaration): Redeclarations of
	variables can differ in constexpr.

/testsuite
2013-11-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59123
	* g++.dg/cpp0x/constexpr-redeclaration1.C: New.
	* g++.dg/cpp0x/constexpr-decl.C: Adjust.

From-SVN: r204923
2013-11-17 19:22:43 +00:00

11 lines
162 B
C

// PR c++/59123
// { dg-do compile { target c++11 } }
// Fwd-declarations
struct S;
extern const S s;
// (... later) definitions
struct S {};
constexpr S s {};