- 
    Bug 
- 
    Resolution: Out of scope
- 
    P3: Somewhat important 
- 
    None
- 
    6.3
- 
    None
I tried to build Qt with clang and -sanitize undefined and failed due to bunch of similar errors:
cd qt5/build-qt6-tools-dev-sanitize/qtdeclarative/src/quick && qt5/build-qt6-tools-dev-sanitize/qtbase/bin/qsb --glsl 100es,120,150 --hlsl 50 --msl 12 -b -O -s -o qt5/build-qt6-tools-dev-sanitize/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/distancefieldoutlinetext.frag.qsb qt5/qtdeclarative/src/quick/scenegraph/shaders_ng/distancefieldoutlinetext.frag
../qtshadertools/src/3rdparty/SPIRV-Cross/spirv_cross_c.cpp:2057:10: runtime error: downcast of address 0x622000000cd0 which does not point to an object of type 'const struct spvc_type_s'
0x622000000cd0: note: object is of type 'spirv_cross::SPIRType'
 00 00 00 00  60 04 06 35 94 7f 00 00  0e 00 00 00 0d 00 00 00  20 00 00 00 02 00 00 00  01 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'spirv_cross::SPIRType'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../qtshadertools/src/3rdparty/SPIRV-Cross/spirv_cross_c.cpp:2057:10 in
I treid to replace SPIRV-Cross with master (git://github.com/KhronosGroup/SPIRV-Cross) and got the same result. But because of usage of "qsb" it is not clear is it upstream issue or Qt related.