OSDN Git Service

compiler: The type descriptor of an undefined forward type is an error.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Jan 2012 22:50:36 +0000 (22:50 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Jan 2012 22:50:36 +0000 (22:50 +0000)
commit175bd153d53c65bbe8d59cda0b7e241b0c7d3523
treeba911f21b3399364f691e4f99f6c86710225dae3
parent1196ecb0c8cf0bfdb8bd7cfb3d8853b8421c0088
compiler: The type descriptor of an undefined forward type is an error.

* go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
(Gcc_backend::type_alignment): Likewise.
(Gcc_backend::type_field_alignment): Likewise.
(Gcc_backend::type_field_offset): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183381 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/go/gofrontend/types.cc