https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77849
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |egallager at gcc dot gnu.org Known to work| |4.7.4, 4.8.5, 6.4.0, 7.3.0, | |8.2.0 Resolution|--- |FIXED Target Milestone|6.5 |6.4 Known to fail| |4.5.4, 5.5.0 --- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Aldy Hernandez from comment #1) > Confirmed on gcc5 and gcc6 branches. > > Cannot be confirmed on mainline. Removing GCC 7 tag. > > By the way, was this ever working prior to GCC 5 to be marked as a > regression? gcc-4.7 and 4.8 don't warn; 4.5 and before don't support pragma GCC diagnostic push/pop. This seems to be fixed for 6.4 though. gcc-5 is the only version that gives me the same warning as in the original report.