From bee9e49f6ccbb2abcfc5fb9f2d16d82132eb6e81 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 14 Jun 2017 09:18:57 +0000 Subject: [PATCH] =?utf8?q?re=20PR=20c++/58541=20([c++11]=20Bogus=20"error:?= =?utf8?q?=20redeclaration=20...=20differs=20in=20=E2=80=98constexpr?= =?utf8?q?=E2=80=99")?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2017-06-14 Paolo Carlini PR c++/58541 * g++.dg/cpp0x/constexpr-58541.C: New. From-SVN: r249186 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/constexpr-58541.C | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/constexpr-58541.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0bc4384fa67..0f5a2930038 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-06-14 Paolo Carlini + + PR c++/58541 + * g++.dg/cpp0x/constexpr-58541.C: New. + 2017-06-14 Richard Biener PR tree-optimization/81083 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-58541.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-58541.C new file mode 100644 index 00000000000..ab951d25bae --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-58541.C @@ -0,0 +1,6 @@ +// { dg-do compile { target c++11 } } + +struct X { + static constexpr const char x[] = "x"; +}; +const char X::x[]; -- 2.30.2