http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316

--- Comment #30 from Marc Glisse <marc.glisse at normalesup dot org> 2011-08-30 
20:32:57 UTC ---
(In reply to comment #29)
> New version that works with typedefs (I was forgetting extern "C" in the
> canonical type...). The patch also includes a workaround for __stoa. There
> seems to still be an issue with argument deduction.

Also need to fix strip_typedefs (I am not uploading a new patch right now):

--- gcc/cp/tree.c    (revision 178336)
+++ gcc/cp/tree.c    (working copy)
@@ -1151,8 +1151,8 @@
       }
     else
       {
-        result = build_function_type (type,
-                      arg_types);
+        result = build_function_type2 (type, arg_types,
+                TYPE_MINVAL (t) != 0);
         result = apply_memfn_quals (result, type_memfn_quals (t));
       }

Reply via email to