re PR c++/65513 (gcc stops with "internal compiler error")
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 24 Mar 2015 10:24:33 +0000 (10:24 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 24 Mar 2015 10:24:33 +0000 (10:24 +0000)
2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221620

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

index 6e8f5b1..55f6ed6 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/65513
+       * g++.dg/cpp0x/constexpr-array11.C: New.
+
 2015-03-24  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/65517
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-array11.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-array11.C
new file mode 100644 (file)
index 0000000..5ecda4d
--- /dev/null
@@ -0,0 +1,13 @@
+// PR c++/65513
+// { dg-do compile { target c++11 } }
+
+template <typename _Tp> struct atomic {
+  atomic() = default;
+  atomic(_Tp);
+};
+
+struct {
+  atomic<bool> bReadyToFlush;
+}
+
+LogThreadsleLogEntries[10]{};