https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85810
--- Comment #2 from cookevillain at yahoo dot com ---
There is nothing obvious about the intent of the Standard here (see the
definition of type name scope introduced into the standard to handle a similar
formal issue). Grammatically, parameter
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: cookevillain at yahoo dot com
Target Milestone: ---
Clause 6.2.1(2) of the C11 ISO Standard (draft) defines a function prototype as
follows:
A function prototype is a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55422
--- Comment #7 from cookevillain at yahoo dot com ---
(In reply to Andrew Pinski from comment #5)
> The first example is invalid C90 anyways:
> t4.c:10:3: error: ISO C90 forbids mixed declarations and code [-Wpedantic]
I forgot to mention
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55422
cookevillain at yahoo dot com changed:
What|Removed |Added
Version|4.4.3 |5.4.0
--- Comment #6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55422
--- Comment #4 from cookevillain at yahoo dot com 2012-11-21 21:53:48 UTC ---
(In reply to comment #3)
> Looks like the first example is just an undefined behavior in which case GCC
> isn't obliged to issue an error.
Quite t
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55422
--- Comment #1 from cookevillain at yahoo dot com 2012-11-20 23:55:16 UTC ---
gcc -v output, omitted in the report:
-
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55422
Bug #: 55422
Summary: gcc does not diagnose change of linkage for a
function.
Classification: Unclassified
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55420
Bug #: 55420
Summary: Gcc produces an internal compiler error (nested
function with variably modified return)
Classification: Unclassified
Product: gcc
Version: 4.4.3