https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128450
--- Comment #6 from postmaster at raasu dot org --- Created attachment 66125 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66125&action=edit Reduced test case Pretty much reduced to calling a class method with no body at all, essentially something that is defined below the line it is called. > gtest-all.i:65:8: warning: ‘bool std::d::{anonymous}::bf::bg(std::ap) const’ > used but never defined > 65 | bool bg(ap) const; > | ^~ > gtest-all.i: In function ‘bool std::d::bi(std::ap, char*)’: > gtest-all.i:69:44: error: ‘<anonymous>’ may be used uninitialized > [-Werror=maybe-uninitialized] > 69 | bool bi(ap bj, char *bk) { return bf(bk).bg(bj); } > | ~~~~~~~~~^~~~
