Description
- Scenario A: Call
Tests1(DefaultMemory) only in main()-> Success
- Scenario B: Call
Tests2(ret) only in main()-> Success
- Scenario A&B (The Bug): Call both in
main() -> Crash (cast<X>() argument of incompatible type!)
A very strange and incomprehensible mistake
Steps to Reproduce
godbolt.org full share link
or short link
Actual Behavior
error: cast() argument of incompatible type!
Compiler returned: 5
Environment