This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/61877] [5 Regression]: reflect: cannot use []string as type string in Call
- From: "michael.hudson at linaro dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Oct 2014 09:49:52 +0000
- Subject: [Bug go/61877] [5 Regression]: reflect: cannot use []string as type string in Call
- Auto-submitted: auto-generated
- References: <bug-61877-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61877
--- Comment #6 from Michael Hudson-Doyle <michael.hudson at linaro dot org> ---
Created attachment 33640
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33640&action=edit
my test cases
I think the patch works because when the compiler sees a call to a variadic
function, it generates a regular call with a slice as the last parameter.
I'm attaching a test case that I wrote -- it passes with my patch and fails
without it, so I think my patch has at last something going for it...
It also seems the intel case is broken on this test case on mainline. If I
hack it to take the ffi case, it works with my patch. Also 4.9 works, which
confuses me a little -- I didn't think the intel code path had changed here
(but haven't actually checked).