From: Paolo Carlini Date: Wed, 14 Jun 2017 09:18:57 +0000 (+0000) Subject: re PR c++/58541 ([c++11] Bogus "error: redeclaration ... differs in ‘constexpr’") X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bee9e49f6ccbb2abcfc5fb9f2d16d82132eb6e81;p=gcc.git re PR c++/58541 ([c++11] Bogus "error: redeclaration ... differs in ‘constexpr’") 2017-06-14 Paolo Carlini PR c++/58541 * g++.dg/cpp0x/constexpr-58541.C: New. From-SVN: r249186 --- 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[];