This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/2316] g++ fails to overload on language linkage
- From: "marc.glisse at normalesup dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Aug 2011 20:32:57 +0000
- Subject: [Bug c++/2316] g++ fails to overload on language linkage
- Auto-submitted: auto-generated
- References: <bug-2316-4@http.gcc.gnu.org/bugzilla/>
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));
}