summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/cxx1y-variable-template.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR42111: Use guarded initialization for thread-local variables withRichard Smith2019-06-051-0/+17
| | | | | | | | | unordered initialization and internal linkage. We'll run their initializers once on each reference, so we need a guard variable even though they only have a single definition. llvm-svn: 362562
* PR35456: Track definedness of variable template specializations separately fromRichard Smith2017-12-021-0/+6
| | | | | | | | | | whether they have an initializer. We cannot distinguish between a declaration of a variable template specialization and a definition of one that lacks an initializer without this, and would previously mistake the latter for the former. llvm-svn: 319605
* CodeGen: Fix linkage of reference temporariesDavid Majnemer2014-04-281-2/+2
| | | | | | | | | | | | | | | Summary: A reference temporary should inherit the linkage of the variable it initializes. Otherwise, we may hit cases where a reference temporary wouldn't have the same value in all translation units. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3515 llvm-svn: 207451
* Variable templates: handle instantiation of static data member templatesRichard Smith2013-09-271-0/+24
appropriately, especially when they appear within class templates. llvm-svn: 191548
OpenPOWER on IntegriCloud