/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
11 lines
162 B
C
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 {};
|