https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41874
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |6.5.0 CC| |jason at gcc dot gnu.org Known to work| |7.5.0 Target Milestone|--- |7.0 Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #17 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Aso Renji from comment #15) > No, this warning still appear if (and only if) you use -O2 or -O3 > optimization key (as it be in startpost with "g++ -O3 -Wstrict-aliasing > test.cc -o /dev/null" line). I don't see this with any compiler after 6.5.0.