This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/60288] gccgo crashes compiling '*func_ptr(0)'
- From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Feb 2014 10:57:10 +0000
- Subject: [Bug go/60288] gccgo crashes compiling '*func_ptr(0)'
- Auto-submitted: auto-generated
- References: <bug-60288-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60288
--- Comment #1 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
> So it looks like gccgo reads the expression as
>
> (*pg)(0)
^^^^^^^^
I meant
-> (*(&g))(0)
> while golang reads it as
>
> *(pg(0))
^^^^^^^^
-> *(&(g(0)))