This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Feb 2009 23:38:18 -0000
- Subject: [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
- References: <bug-39060-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from hjl dot tools at gmail dot com 2009-02-14 23:38 -------
This latent bug is triggered by the part of revision 143157:
---
Index: i386.c
===================================================================
--- i386.c (revision 143154)
+++ i386.c (working copy)
@@ -22183,6 +22183,11 @@ ix86_init_mmx_sse_builtins (void)
V8SI_type_node, V4SI_type_node,
integer_type_node,
NULL_TREE);
+ tree pv4di_type_node = build_pointer_type (V4DI_type_node);
+ tree void_ftype_pv4di_v4di
+ = build_function_type_list (void_type_node,
+ pv4di_type_node, V4DI_type_node,
+ NULL_TREE);
tree v8sf_ftype_v8sf_v4sf_int
= build_function_type_list (V8SF_type_node,
V8SF_type_node, V4SF_type_node,
---
This patch:
Index: cp/decl.c
===================================================================
--- cp/decl.c (revision 143157)
+++ cp/decl.c (working copy)
@@ -1549,6 +1549,7 @@ duplicate_decls (tree newdecl, tree oldd
error ("after previous specification in %q+#D",
olddecl);
}
+ return error_mark_node;
}
}
}
works for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060