[Clang][Sema] Error during compilation of xalancbmk_r
According to git bisect this commit:
https://github.com/llvm/llvm-project/commit/8009bbec59d1c5d47ae06c431647ebee6d886ff2
is causing an error during compilation of xalancbmk_r benchmark in SPEC2017. The error is:
In file included from XalanXMLSerializerFactory.cpp:30:
./xalanc/XMLSupport/XalanOtherEncodingWriter.hpp:319:30: error: no member named 'm_isPresentable' in 'XalanOtherEncodingWriter<Predicate, ConstantsType>'
319 | if(this->m_isPresentable(value))
I am not sure if I can provide the detailed steps to reproduce this because of the spec license.
@sdkrystian Can you please revert this commit. Also, please let me know if you need help in reproducing the issue.
The workaround is to add -fdelayed-template-parsing to the command line
The code in the benchmark is invalid but its in a template that is not instantiated.
Please see the discussion here. There are currently no plans to revert or add mitigation mechanisms for this issue -- use -fdelayed-template-parsing if you cannot fix the code.
The workaround is to add -fdelayed-template-parsing to the command line @topperc
Thanks Craig!
Please see the discussion here. There are currently no plans to revert or add mitigation mechanisms for this issue -- use
-fdelayed-template-parsingif you cannot fix the code.
Thanks Krystian! Closing the issue.