https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105256
--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> --- Marek, what -std do you use? I see the following compilation errors: /home/chris/rpm/BUILD/firefox-99.0.1/layout/generic/nsContainerFrame.h:638:74: error: ‘static void nsFrameList::operator delete(void*)’ is private within this context In file included from /home/chris/rpm/BUILD/firefox-99.0.1/layout/base/nsFrameManager.h:14, from /home/chris/rpm/BUILD/firefox-99.0.1/obj-dir/dist/include/mozilla/PresShell.h:36, from /home/chris/rpm/BUILD/firefox-99.0.1/obj-dir/dist/include/mozilla/dom/DocumentInlines.h:11, from /home/chris/rpm/BUILD/firefox-99.0.1/layout/style/ImageLoader.cpp:14: /home/chris/rpm/BUILD/firefox-99.0.1/layout/generic/nsFrameList.h:571:8: note: declared private here /home/chris/rpm/BUILD/firefox-99.0.1/layout/generic/nsContainerFrame.h: In member function ‘nsFrameList* nsContainerFrame::SetOverflowContainers(nsFrameList&&)’: /home/chris/rpm/BUILD/firefox-99.0.1/layout/generic/nsContainerFrame.h:648:78: error: ‘static void nsFrameList::operator delete(void*)’ is private within this context /home/chris/rpm/BUILD/firefox-99.0.1/layout/generic/nsFrameList.h:571:8: note: declared private here /home/chris/rpm/BUILD/firefox-99.0.1/layout/generic/nsContainerFrame.h: In member function ‘nsFrameList* nsContainerFrame::SetExcessOverflowContainers(nsFrameList&&)’: /home/chris/rpm/BUILD/firefox-99.0.1/layout/generic/nsContainerFrame.h:661:75: error: ‘static void nsFrameList::operator delete(void*)’ is private within this context Both with master and GCC 11.x.