-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclangClang issues not falling into any other categoryClang issues not falling into any other category
Description
| Bugzilla Link | 45124 |
| Resolution | FIXED |
| Resolved on | Mar 11, 2020 03:39 |
| Version | 10.0 |
| OS | Windows NT |
| Blocks | #43900 |
| Reporter | LLVM Bugzilla Contributor |
| CC | @froydnj,@zmodem,@zygoloid,@sylvestre |
Extended Description
template class a { int d; };
template <template class b> class c : b {} ;
__thread c g1;
struct x { ~x(); };
template class y { y(x = x()); };
template y(z)->y;
__thread c 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.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclangClang issues not falling into any other categoryClang issues not falling into any other category