[Bug go/60288] gccgo crashes compiling '*func_ptr(0)'

vogt at linux dot vnet.ibm.com gcc-bugzilla@gcc.gnu.org
Thu Feb 20 10:57:00 GMT 2014


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



More information about the Gcc-bugs mailing list