+2003-06-25 Josef Zlomek <zlomekj@suse.cz>
+
+ * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
+
2003-06-25 Neil Booth <neil@daikokuya.co.uk>
* opts.c (common_handle_option): Add missing break;s.
tree decl;
dw_die_ref context_die;
{
- dw_die_ref decl_die = new_die (DW_TAG_member, context_die, decl);
+ dw_die_ref decl_die;
+ if (TREE_TYPE (decl) == error_mark_node)
+ return;
+
+ decl_die = new_die (DW_TAG_member, context_die, decl);
add_name_and_src_coords_attributes (decl_die, decl);
add_type_attribute (decl_die, member_declared_type (decl),
TREE_READONLY (decl), TREE_THIS_VOLATILE (decl),