Implement C++03 [dcl.init]p5's checking for value-initialization of references
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 8 Dec 2012 02:01:17 +0000 (02:01 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 8 Dec 2012 02:01:17 +0000 (02:01 +0000)
commit593f993a68550aff3b668c97a62447ee146d509b
treecc5435f6ef285e7c6abcf4f9b3515346034980a1
parent1536e3b2c39a927337d4647ae2c3cd7103bb2772
Implement C++03 [dcl.init]p5's checking for value-initialization of references
properly, rather than faking it up by pretending that a reference member makes
the default constructor non-trivial. That leads to rejects-valids when putting
such types inside unions.

llvm-svn: 169662
clang/include/clang/AST/DeclCXX.h
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/DeclCXX.cpp
clang/lib/Sema/SemaInit.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/test/CXX/class/class.union/p1.cpp
clang/test/CXX/dcl.decl/dcl.init/p5.cpp