[Bug c/63591] No syntax error yielded for semicolons inside a function proto, instead code with memory corruption can be created

2014-10-18 Thread k.s.matheussen at notam02 dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63591 --- Comment #5 from Kjetil Matheussen --- Sorry, complete example below. The problem with the code is: 1. Proto doesn't match function. There is an extra semicolon in the proto, but not in the function itself. 2. Calling "afunction" may cause me

[Bug c/63591] No syntax error yielded for semicolons inside a function proto, instead code with memory corruption can be created

2014-10-18 Thread k.s.matheussen at notam02 dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63591 --- Comment #3 from Kjetil Matheussen --- I didn't know about this gnu extension. But regardless, shouldn't gcc complain when the proto doesn't match the function itself? Also, although I don't understand how this extension works from the docume

[Bug c/63591] New: No syntax error yielded for semicolons inside a function proto, instead code with memory corruption can be created

2014-10-18 Thread k.s.matheussen at notam02 dot no
: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: k.s.matheussen at notam02 dot no This code should, as far as I know, not be legal C code: extern int afunction