Fix bug in computing POD-for-layout.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 20 Jul 2013 01:06:31 +0000 (01:06 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 20 Jul 2013 01:06:31 +0000 (01:06 +0000)
commita54333264a13c54b561bd55ba815f57f9bf33c91
treec4813f0f53d4c479c330643def74660fdbdde966
parent5884aa9617b0219bf66a86769417ed3ceeab75ae
Fix bug in computing POD-for-layout.

A class with a field of non-POD-for-layout type is not POD-for-layout.
This computation should not depend on whether the field is of POD type
in the language sense.

Fixes PR16537.

Patch by Josh Magee.

llvm-svn: 186741
clang/docs/ReleaseNotes.rst
clang/lib/AST/DeclCXX.cpp
clang/test/SemaCXX/class-layout.cpp