public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/41537] New: A syntax error for function defination
@ 2009-10-01 20:00 john dot huang at gm dot com
2009-10-01 20:04 ` [Bug c/41537] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: john dot huang at gm dot com @ 2009-10-01 20:00 UTC (permalink / raw)
To: gcc-bugs
A function was defined incorrectly as below:
float funcA [] = { } ;
However, we did not get any message for this syntax error when it is compiled.
--
Summary: A syntax error for function defination
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: john dot huang at gm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41537
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/41537] A syntax error for function defination
2009-10-01 20:00 [Bug c/41537] New: A syntax error for function defination john dot huang at gm dot com
@ 2009-10-01 20:04 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-10-01 20:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-10-01 20:04 -------
This is a valid variable array definition in GNU C90.
It creates an array that is zero sized called funcA.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41537
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-01 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-01 20:00 [Bug c/41537] New: A syntax error for function defination john dot huang at gm dot com
2009-10-01 20:04 ` [Bug c/41537] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).