Skip to content

Commit eaa85e0

Browse files
authored
Fix clang build depending on delayed template parsing (#5288)
Remove scope resolution on call to SetupAndRun. This works on MSVC presumably because of it's former non-conformant two-phase lookup. Clang can be made to emulate this behaviour by enabling `-fdelayed-template-parsing`, but GCC does not seem to support this flag. It seems easier to just fix the code this way.
1 parent 22c761c commit eaa85e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/DxilDia/DxcPixEntrypoints.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,15 @@ class Entrypoint : public I
351351
template <typename F, typename... A>
352352
HRESULT InvokeOnReal(F pFn, A... Args)
353353
{
354-
return ::SetupAndRun(m_pMalloc, std::mem_fn(pFn), m_pReal, Args...);
354+
return SetupAndRun(m_pMalloc, std::mem_fn(pFn), m_pReal, Args...);
355355
}
356356

357357
public:
358358
DXC_MICROCOM_TM_ADDREF_RELEASE_IMPL();
359359

360360
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void** ppvObject) override final
361361
{
362-
return ::SetupAndRun(
362+
return SetupAndRun(
363363
m_pMalloc,
364364
std::mem_fn(&Entrypoint<IInterface>::QueryInterfaceImpl),
365365
ThisPtr(this),

0 commit comments

Comments
 (0)