You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
assert with out-of-line template member function definition #6835
Description
An out-of-line template member function definition triggers an assert (in an assert enabled build of DXC) with an invalid heap pointer. A release build does not show any issues, although it is possible the heap pointer is still invalid but not detected so could cause latent issues.
Steps to Reproduce
This appears to occur with all out-of-line function definitions - a simple example is given below. Compile with -T lib_6_8
template< typename T >
class C {
void f();
};
template< typename T >
void C< T >::f() { }
Actual Behavior
Assert triggered.
Environment
DXC version : dxcompiler.dll: 1.8 - 1.8.0.14690 (main, 9ef0481) (also seen on other versions)
Host Operating System : Windows 10 Pro 22H2 (also observed on Windows 11)
I finally revisited this issue, and it no longer occurs so I am closing it.
The changes(s) that resolved it isn't obvious, but given the time since this was raised that is to be expected.
Activity
damyanp commentedon Jul 30, 2024
Tim Corringham (@tcorringham) - are you working on this one as well? If so we can assign it to you. Thanks!
tcorringham commentedon Aug 1, 2024
I may not have time to look at this for a while, so I won't claim it until I do have time - just in case someone else wants to tackle it.
tcorringham commentedon Apr 21, 2026
I finally revisited this issue, and it no longer occurs so I am closing it.
The changes(s) that resolved it isn't obvious, but given the time since this was raised that is to be expected.
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to 5c60…
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to 5c60…