[Bug c/85810] gcc incorrectly handles declarations inside parameter lists of function declarators.

2018-05-16 Thread cookevillain at yahoo dot com
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

[Bug c/85810] New: gcc incorrectly handles declarations inside parameter lists of function declarators.

2018-05-16 Thread cookevillain at yahoo dot com
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

[Bug c/55422] gcc does not diagnose change of linkage for a function.

2018-01-27 Thread cookevillain at yahoo dot com
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

[Bug c/55422] gcc does not diagnose change of linkage for a function.

2018-01-27 Thread cookevillain at yahoo dot com
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

[Bug c/55422] gcc does not diagnose change of linkage for a function.

2012-11-21 Thread cookevillain at yahoo dot com
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

[Bug c/55422] gcc does not diagnose change of linkage for a function.

2012-11-20 Thread cookevillain at yahoo dot com
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

[Bug c/55422] New: gcc does not diagnose change of linkage for a function.

2012-11-20 Thread cookevillain at yahoo dot com
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

[Bug c/55420] New: Gcc produces an internal compiler error (nested function with variably modified return)

2012-11-20 Thread cookevillain at yahoo dot com
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