llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[Clang][Sema] Error during compilation of xalancbmk_r

Open mgudim opened this issue 2 years ago • 5 comments

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.

mgudim avatar Jun 27 '24 07:06 mgudim

@sdkrystian Can you please revert this commit. Also, please let me know if you need help in reproducing the issue.

mgudim avatar Jun 27 '24 07:06 mgudim

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.

topperc avatar Jun 27 '24 07:06 topperc

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.

sdkrystian avatar Jun 27 '24 13:06 sdkrystian

The workaround is to add -fdelayed-template-parsing to the command line @topperc

Thanks Craig!

mgudim avatar Jun 27 '24 17:06 mgudim

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.

Thanks Krystian! Closing the issue.

mgudim avatar Jun 27 '24 17:06 mgudim