This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]