PR c++/65945
commit834409abb31543f669540be8f5a47f0d95969b5e
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jul 2015 17:59:19 +0000 (1 17:59 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jul 2015 17:59:19 +0000 (1 17:59 +0000)
tree02021abfb17f1a5128da0a9911f59033583619eb
parentd277282f5a5dad072bfb4507ba6155dbe247328d
PR c++/65945
* decl.c (cxx_init_decl_processing): Set TYPE_ALIGN of nullptr_t.
* class.c (layout_nonempty_base_or_field): Warn if that affects
the offset of a field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225270 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/testsuite/g++.dg/abi/nullptr-align.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/nullptr-align2.C [new file with mode: 0644]