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
Description
I am encountering a SIGSEGV when setting a type template parameter with a default value: By passing it in a function with overriden template parameters as inout, it produces a crash.
Steps to Reproduce
Here is a small repro sample code
template <typename T, typename A = uint> // 1. Here we set default template parameter valuestruct TemplatedType {
T value;
};
template<typename T>
voidincrement(inout TemplatedType<T, float> value) { // 2. Here we require a second parameter different from the default one. The inout is important there
value.value += 1.0;
}
voidmain() {
TemplatedType<float> oui; // 3. Here we define with second template parameter as default
increment<float>(oui); // 4. Here we should have an error, but instead we have a SIGSEGV
}
Description
I am encountering a SIGSEGV when setting a type template parameter with a default value: By passing it in a function with overriden template parameters as inout, it produces a crash.
Steps to Reproduce
Here is a small repro sample code
Here is a link on godbolt
Actual Behavior
This should not crash and simply return an error, such as C++ with visual studio.
Environment
The text was updated successfully, but these errors were encountered: