re PR c++/67533 (internal compiler error: in build_call_a, at cp/call.c:372)
authorMarek Polacek <polacek@redhat.com>
Wed, 7 Aug 2019 21:21:57 +0000 (21:21 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 7 Aug 2019 21:21:57 +0000 (21:21 +0000)
PR c++/67533
* g++.dg/tls/thread_local-ice5.C: New test.

From-SVN: r274200

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tls/thread_local-ice5.C [new file with mode: 0644]

index cf4cbabca69d304abad459c6c8d1147e4d0aeed9..cade2979e45620dcf7f62fe1e5526c47a6f414d9 100644 (file)
@@ -1,3 +1,8 @@
+2019-08-07  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/67533
+       * g++.dg/tls/thread_local-ice5.C: New test.
+
 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
 
        * gcc.target/aarch64/sve/init_13.c: New test.
diff --git a/gcc/testsuite/g++.dg/tls/thread_local-ice5.C b/gcc/testsuite/g++.dg/tls/thread_local-ice5.C
new file mode 100644 (file)
index 0000000..4147c32
--- /dev/null
@@ -0,0 +1,7 @@
+// PR c++/67533
+// { dg-do compile { target c++11 } }
+// { dg-require-effective-target tls }
+
+struct Tls {};
+void _ZTW5mytls();
+thread_local Tls mytls = mytls; // { dg-error "" }