https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116064
--- Comment #13 from Tamar Christina <tnfchris at gcc dot gnu.org> --- (In reply to Li Pan from comment #12) > Looks RISC-V backend still has this issue, can you reproduce this? > > /opt/gcc-master//bin/g++ --version > g++ (GCC) 15.0.0 20241014 (experimental) > > /opt/gcc-master//bin/g++ -std=c++03 -c -o XalanXMLSerializerFactory.o -DSPEC > -DNDEBUG -DAPP_NO_THREADS -DXALAN_INMEM_MSG_LOADER -I. -Ixercesc > -Ixercesc/dom -Ixercesc/dom/impl -Ixercesc/sax > -Ixercesc/util/MsgLoaders/InMemory -Ixercesc/util/Transcoders/Iconv > -Ixalanc/i> > In file included from XalanXMLSerializerFactory.cpp:30: > xalanc/XMLSupport/XalanOtherEncodingWriter.hpp: In member function 'void > xalanc_1_10::XalanOtherEncodingWriter<Predicate, > ConstantsType>::writeSafe(const xalanc_1_10::XalanDOMChar*, > xalanc_1_10::XalanFormatterWriter::size_type)': > xalanc/XMLSupport/XalanOtherEncodingWriter.hpp:319:30: error: 'class > xalanc_1_10::XalanOtherEncodingWriter<Predicate, ConstantsType>' has no > member named 'm_isPresentable' [-Wtemplate-body] > 319 | if(this->m_isPresentable(value)) > | ^~~~~~~~~~~~~~~ > xalanc/XMLSupport/XalanOtherEncodingWriter.hpp:325:31: error: 'class > xalanc_1_10::XalanOtherEncodingWriter<Predicate, ConstantsType>' has no > member named 'writeNumberedEntityReference' [-Wtemplate-body] > 325 | this->writeNumberedEntityReference(value); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > specmake: *** > [/root/panli/benchmarks/spec2017/benchspec/Makefile.defaults:366: > XalanXMLSerializerFactory.o] Error 1 > specmake: *** Waiting for unfinished jobs.... your command invocation doesn't look like you passed any of the two required flags though.. > One can now use -fpermissive or -Wno-error=template-body to compile TUs > containing errors inside uninstantiated templates. So you have to use one of those two.