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

2014-02-21 Thread vogt at linux dot vnet.ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60288 Dominik Vogt vogt at linux dot vnet.ibm.com changed: What|Removed |Added Status|RESOLVED|CLOSED ---

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

2014-02-20 Thread vogt at linux dot vnet.ibm.com
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)))

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

2014-02-20 Thread ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60288 --- Comment #2 from Ian Lance Taylor ian at airs dot com --- I don't think there is any parsing issue with the omitted error on line 5. It's just that gccgo converts *x to x for any x, and forgets to test that x must be addressable.

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

2014-02-20 Thread ian at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60288 --- Comment #3 from ian at gcc dot gnu.org ian at gcc dot gnu.org --- Author: ian Date: Thu Feb 20 15:20:26 2014 New Revision: 207960 URL: http://gcc.gnu.org/viewcvs?rev=207960root=gccview=rev Log: PR go/60288 compiler: Avoid crash, give

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

2014-02-20 Thread ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60288 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED