[llvm-bugs] [Bug 45124] New: clang-10 regression with __thread and deduction guides
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 5 09:34:23 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=45124
Bug ID: 45124
Summary: clang-10 regression with __thread and deduction guides
Product: clang
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: dmajor at mozilla.com
CC: froydnj at gmail.com, htmldeveloper at gmail.com,
llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk, sylvestre at debian.org
Blocks: 44555
https://godbolt.org/z/9rQ5Mi
template <typename> class a { int d; };
template <template <typename> class b> class c : b<int> {} ;
__thread c<a> g1;
struct x { ~x(); };
template <typename> class y { y(x = x()); };
template <typename z> y(z)->y<z>;
__thread c<a> g2;
`g1` compiles fine, but when a deduction guide is introduced, `g2` gives an
`error: initializer for thread-local variable must be a constant expression`
even though the deduction guide's classes have nothing to do with the
`__thread` variable's classes.
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=44555
[Bug 44555] [meta] 10.0.0 Release Blockers
--
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/20200305/f4f78c5b/attachment.html>
More information about the llvm-bugs
mailing list