llvm-project/clang/lib
Douglas Gregor 65eb86e912 Fix reference binding of const lvalue references to bit-fields, which
requires a temporary. Previously, we were building an initialization
sequence that bound to the bit-field as if it were a real lvalue. Note
that we previously (and still) diagnose binding of non-const
references to bit-fields, as we should.

There's no real way to test that this code is correct, since reference
binding does not *currently* have any representation in the AST. This
fix should make it easier for that to happen, so I've verified this
fix with...

Added InitializationSequence::dump(), to print an initialization
sequence for debugging purposes.

llvm-svn: 94826
2010-01-29 19:14:02 +00:00
..
AST Fix reference binding of const lvalue references to bit-fields, which 2010-01-29 19:14:02 +00:00
Analysis Alternate format string checking: issue warnings for incomplete format specifiers. 2010-01-29 03:16:21 +00:00
Basic Introduce serialization and deserialization of diagnostic information 2010-01-28 06:00:51 +00:00
Checker Move more naming conventions logic out of the retain/release checker to CocoaConventions.h. 2010-01-27 18:00:17 +00:00
CodeGen Maintain a map of regions (lexical scopes) and use it to find context for a global variable. 2010-01-29 18:11:03 +00:00
Driver Driver/Darwin: Fix a crash when diagnosing conflicting deployment targets. 2010-01-29 17:02:25 +00:00
Frontend Fixes rewriter bug rewriting byref related API where a struct 2010-01-29 01:55:49 +00:00
Headers fix a bug in the _MM_TRANSPOSE4_PS definition, patch by Brian Sumner from 2010-01-27 07:54:50 +00:00
Index -fno-rtti is now the default. 2010-01-24 20:43:31 +00:00
Lex Use raw_ostreams in Preprocessor::ExpandBuiltinMacro. Still not nice but less fragile than the old code. 2010-01-27 16:38:22 +00:00
Parse Fixit to remove 'volatile' in file-scope 'asm volatile'. 2010-01-25 23:12:50 +00:00
Rewrite Fixes a rewrite bug rewriting nested ivars reference. 2010-01-28 01:41:20 +00:00
Runtime clang/Darwin: Update for rename of 10.4 static runtime library. 2010-01-20 02:35:02 +00:00
Sema Fix reference binding of const lvalue references to bit-fields, which 2010-01-29 19:14:02 +00:00
CMakeLists.txt Split libAnalysis into two libraries: libAnalysis and libChecker. 2010-01-25 04:41:41 +00:00
Makefile Split libAnalysis into two libraries: libAnalysis and libChecker. 2010-01-25 04:41:41 +00:00