[Bug c/101446] -Wpedantic causes an error with zero size array

2021-07-14 Thread ismail at i10z dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101446 --- Comment #7 from İsmail Dönmez --- Well, it's even more confusing, grepping through glibc build log: ../include/stdlib.h:297:8: warning: ISO C forbids zero-size array 'msg' [-Wpedantic] 297 | char msg[0]; |^~~ ../inet/netin

[Bug c/101446] -Wpedantic causes an error with zero size array

2021-07-14 Thread ismail at i10z dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101446 --- Comment #6 from İsmail Dönmez --- (In reply to Richard Biener from comment #4) > -Wpedantic was added as fix for PR44774 to make -Werror=pedantic work > (as opposed to -Werror=edantic) The problem is that it's inconsistent, here is a list o

[Bug c/101446] -Wpedantic causes an error with zero size array

2021-07-14 Thread ismail at i10z dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101446 --- Comment #3 from İsmail Dönmez --- (In reply to Richard Biener from comment #2) > -Wpedantic is the same as -pedantic and that affects correctness of programs. > > @item -Wpedantic > @itemx -pedantic > @opindex pedantic > @opindex Wpedantic

[Bug c/101446] New: -Wpedantic causes an error with zero size array

2021-07-14 Thread ismail at i10z dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101446 Bug ID: 101446 Summary: -Wpedantic causes an error with zero size array Product: gcc Version: 11.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component