https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89864
--- Comment #77 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Iain Sandoe from comment #76) > (In reply to Jürgen Reuter from comment #75) > > LLVM does not compile, but I > > guess this is unrelated to the problem here: > > [ 38%] Building CXX object > > lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/PDBContext.cpp.o > > In file included from > > /Users/reuter/local/packages/llvm-project/llvm/include/llvm/DebugInfo/PDB/ > > IPDBSession.h:12, > > from > > /Users/reuter/local/packages/llvm-project/llvm/include/llvm/DebugInfo/PDB/ > > PDBContext.h:13, > > from > > /Users/reuter/local/packages/llvm-project/llvm/lib/DebugInfo/PDB/PDBContext. > > cpp:9: > > /Users/reuter/local/packages/llvm-project/llvm/include/llvm/DebugInfo/PDB/ > > PDBSymbol.h:20:37: error: invalid use of incomplete type 'const class > > llvm::pdb::PDBSymbolData' > > 20 | auto MethodName() const->decltype(RawSymbol->MethodName()) { > > \ > > | ^~~~~~~~~ > > /Users/reuter/local/packages/llvm-project/llvm/include/llvm/DebugInfo/PDB/ > > PDBSymbolData.h:27:3: note: in expansion of macro 'FORWARD_SYMBOL_METHOD' > > 27 | FORWARD_SYMBOL_METHOD(getAccess) > > | ^~~~~~~~~~~~~~~~~~~~~ > > This either a regression (since trunk GCC built LLVM ≈ 2 months ago) or it's > a new feature exposing some other bug in LLVM - either way, you are right, > it doesn't appear related to the current patch. I will attempt to see if > it's repeatable on Linux, Fails the same way on Linux - so, as noted, it's either a regression or an improved error detection for some other issue.