PR c++/19964
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2005 10:59:27 +0000 (10:59 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2005 10:59:27 +0000 (10:59 +0000)
commit65a7c5264512fc06d765acae85429103240e6715
treeb0465a3073a9f4f3860f76293fb3d13b4ca9868a
parentc87aac54606cd98f51ddc213e4bfee7b8e33eb13
PR c++/19964
* stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
type.
cp:
PR c++/19964
* cp/class.c (walk_subobject_offsets): Don't walk error_mark_node.
testsuite:
PR c++/19964
* g++.dg/parse/crash31.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105293 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash31.C [new file with mode: 0644]