https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61259
Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.3.0, 4.4.0 CC| |reichelt at gcc dot gnu.org Summary|Spurious "ISO C++ forbids |[Regression 8/9/10/11] |zero-size array" warning |Spurious "ISO C++ forbids |with -pedantic |zero-size array" warning | |with -pedantic Last reconfirmed|2014-05-20 00:00:00 |2021-4-20 Keywords| |rejects-valid --- Comment #4 from Volker Reichelt <reichelt at gcc dot gnu.org> --- If you compile the code with "-pedantic-errors" the code is wrongly rejected, so marking it as rejects-valid. Self-contained example: ============================== int foo(int x[2]) { int i(int(x[0])*1); return i; } ==============================