From f2f9d24da809ef490faaef97eb56729a0c3694df Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Wed, 7 Aug 2019 21:21:57 +0000 Subject: [PATCH] re PR c++/67533 (internal compiler error: in build_call_a, at cp/call.c:372) PR c++/67533 * g++.dg/tls/thread_local-ice5.C: New test. From-SVN: r274200 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/tls/thread_local-ice5.C | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 gcc/testsuite/g++.dg/tls/thread_local-ice5.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cf4cbabca69..cade2979e45 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-08-07 Marek Polacek + + PR c++/67533 + * g++.dg/tls/thread_local-ice5.C: New test. + 2019-08-07 Richard Sandiford * 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 index 00000000000..4147c322e7b --- /dev/null +++ b/gcc/testsuite/g++.dg/tls/thread_local-ice5.C @@ -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 "" } -- 2.30.2