[Bug c/48687] New: for errors from -pedantic, -Werror reports "[-Werror=edantic]"
doko at ubuntu dot com
gcc-bugzilla@gcc.gnu.org
Tue Apr 19 15:14:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48687
Summary: for errors from -pedantic, -Werror reports
"[-Werror=edantic]"
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: doko@ubuntu.com
$ gcc -c -std=c89 -pedantic -Werror test.c
test.c:3:7: error: ISO C90 does not support flexible array members
[-Werror=edantic]
cc1: all warnings being treated as errors
$ cat test.c
struct foo {
int dummy;
char flex[];
};
More information about the Gcc-bugs
mailing list