https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96734
--- Comment #1 from Ariadne Conill <ariadne at dereferenced dot org> --- Manually compiling cp/method.o using: g++ -c -o cp/method.o -O2 method.ii works fine. I wonder if this is somehow related to pre-compiled headers, actually.