https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67793
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Last reconfirmed|2015-10-01 00:00:00 |2016-5-2 CC| |msebor at gcc dot gnu.org Known to fail| |4.9.3, 5.3.0, 6.0 --- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- See also bug 45840 for a (somewhat remotely) related request involving pointers to arrays. I also think that warning on the test case in comment #1 would be a useful enhancement. Not having tested it, though, I would worry that issuing a warning on the test case in comment #0 by default (or with -Wall) would cause too many false positives. I suppose it could be something to try.