https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #11 from Martin Sebor <msebor at gcc dot gnu.org> --- The reduced test case in comment #0 still produces the same warning with GCC 10 but the attached test case no longer does. I couldn't pinpoint the change that eliminated the warning between 9 and 10 because of all the C++ errors I get for the libstdc++ features that aren't supported by older versions of G++. Since the small test case isn't representative of the larger one I'm going to resolve this as WORKSFORSOME. If the problem persists please open a new bug with a new test case.