[Bug c/56647] use return value of malloc() as initializer

2013-03-18 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56647 Jonathan Wakely changed: What|Removed |Added Resolution|FIXED |INVALID --- Comment #5 from J

[Bug c/56647] use return value of malloc() as initializer

2013-03-17 Thread zhabgyuan1993 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56647 shia changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c/56647] use return value of malloc() as initializer

2013-03-17 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56647 --- Comment #3 from Andrew Pinski 2013-03-18 06:11:55 UTC --- (In reply to comment #0) > --- > r.c:4:1: warning: data definition has no type or storage class [enabled by > default] > r.c:4:1: e

[Bug c/56647] use return value of malloc() as initializer

2013-03-17 Thread zhabgyuan1993 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56647 --- Comment #2 from shia 2013-03-18 05:54:54 UTC --- I think maybe only this one is right: r.c:4:1: error: initializer element is not constant the other part may cause little confused.