This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]