[llvm-bugs] [Bug 42182] New: "cannot compile this non-trivial TLS destruction yet", when compiling with -fno-use-cxa-atexit
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 7 09:00:06 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42182
Bug ID: 42182
Summary: "cannot compile this non-trivial TLS destruction yet",
when compiling with -fno-use-cxa-atexit
Product: clang
Version: unspecified
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: gmc at synopsys.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Compiler reports being unable to compile the following code "yet"...
class foo {
public:
foo();
~foo();
};
void some_func (void)
{
foo thread_local my_var;
}
The error only happens when compiling with the “-fno-use-cxa-atexit” flag:
$ clang++ -fno-use-cxa-atexit -o foo.o -c foo.cxx
foo.cxx:9:20: error: cannot compile this non-trivial TLS destruction yet
foo thread_local my_var;
^
Issue exists with clang 7.1.0, 8, and trunk (as of May 18th content)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190607/5de11b11/attachment.html>
More information about the llvm-bugs
mailing list