re PR c++/58541 ([c++11] Bogus "error: redeclaration ... differs in ‘constexpr’")
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 14 Jun 2017 09:18:57 +0000 (09:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 14 Jun 2017 09:18:57 +0000 (09:18 +0000)
2017-06-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58541
* g++.dg/cpp0x/constexpr-58541.C: New.

From-SVN: r249186

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-58541.C [new file with mode: 0644]

index 0bc4384fa6735f2faf233999b79d4fc97b845e6d..0f5a2930038309a7b44076c0ff6e8716823222ed 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-14  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/58541
+       * g++.dg/cpp0x/constexpr-58541.C: New.
+
 2017-06-14  Richard Biener  <rguenther@suse.de>
 
        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 (file)
index 0000000..ab951d2
--- /dev/null
@@ -0,0 +1,6 @@
+// { dg-do compile { target c++11 } }
+
+struct X {
+ static constexpr const char x[] = "x";
+};
+const char X::x[];