[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread ajax at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 --- Comment #7 from Adam Jackson --- (In reply to Marek Polacek from comment #6) > Well, zero-length arrays are a GNU C extension, but pre-C99 you could use > pixels[1] and post-C99 you can use pixels[]. Is non of that an option? The code coul

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread ajax at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 Adam Jackson changed: What|Removed |Added CC||ajax at redhat dot com --- Comment #5

[Bug c/85182] _Static_assert is less than useful in a static inline

2018-04-03 Thread ajax at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85182 Adam Jackson changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/85182] New: _Static_assert is less than useful in a static inline

2018-04-03 Thread ajax at redhat dot com
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: ajax at redhat dot com Target Milestone: --- Consider: --- desoxy:~/git/junkdrawer% cat -n static-assert.h 1 static inline void bar(void) 2 { 3 _Static_assert(0, "called bar()"); 4

[Bug c/82520] New: Missing warning when stack addresses escape the current scope

2017-10-11 Thread ajax at redhat dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: ajax at redhat dot com Target Milestone: --- Testcase: - #include struct foo { void *v; }; struct foo *bar(void) { int a[10]; struct foo *ret = malloc(sizeof(struct foo

[Bug c++/51427] New: Less-than-useful error message when union/struct tags conflict

2011-12-05 Thread ajax at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51427 Bug #: 51427 Summary: Less-than-useful error message when union/struct tags conflict Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED

[Bug c/41624] New: RFE: -fno-nested-functions

2009-10-07 Thread ajax at redhat dot com
ested-functions Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ajax at redhat dot com http://gcc.gnu.org/bug

[Bug c/30075] Missed optimizations with -fwhole-program -combine

2006-12-05 Thread ajax at redhat dot com
--- Comment #2 from ajax at redhat dot com 2006-12-05 19:37 --- Just to clarify, I neglected to use -O in the example above, but this behaviour is still seen even with -O. -- ajax at redhat dot com changed: What|Removed |Added

[Bug c/30075] New: Missed optimizations with -fwhole-program -combine

2006-12-05 Thread ajax at redhat dot com
everity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ajax at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30075