llvm-project/clang/test/CXX
David Majnemer 27d69dbbd0 CodeGen: Fix linkage of reference temporaries
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
2014-04-28 22:17:59 +00:00
..
basic Don't fold together the name lookup entries for two declarations if they are 2014-03-17 21:46:03 +00:00
class Implement DR1460: fix handling of default initializers in unions; don't allow 2013-12-10 08:25:00 +00:00
class.access When formatting a C++-only declaration name, enable C++ mode in the formatter's 2014-01-22 00:27:42 +00:00
class.derived Implement final resolution of DR1402: implicitly-declared move operators that 2013-11-04 01:48:18 +00:00
conv Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
dcl.dcl If a using-declaration names a class member, but appears outside a class, try 2014-04-02 21:44:35 +00:00
dcl.decl Don't emit an ExtWarn on declarations of variable template specializations; 2014-04-17 02:56:49 +00:00
drs Tests for DR501-525. 2014-04-13 00:40:32 +00:00
except PR16638, DR1552: the exception specification on an implicitly-declared 2014-02-07 22:51:16 +00:00
expr PR19346: Adding 0 to a null pointer has defined behavior in C++. Allow it in constant expressions. 2014-04-08 12:19:28 +00:00
lex Add a triple to unbreak buildbots where size_t is not 'unsigned long'. 2013-10-07 22:58:25 +00:00
over Implement [over.match.oper]p3 properly, by filtering the non-candidates out 2014-04-17 01:52:14 +00:00
special Replace "can not" with "cannot" in diagnostics messages. 2014-03-07 22:36:23 +00:00
stmt.stmt Add -Wdeprecated warnings and fixits for things deprecated in C++11: 2013-06-13 02:02:51 +00:00
temp CodeGen: Fix linkage of reference temporaries 2014-04-28 22:17:59 +00:00