Issue Description
Slang does not compile when SLANG_DISABLE_EXCEPTIONS is defined and C++ exceptions are disabled.
Reproducer Code
From a checkout with submodules initialized:
g++ -std=c++20 -fno-exceptions -DSLANG_DISABLE_EXCEPTIONS=1 \
-Iinclude -Isource -Iexternal/unordered_dense/include \
-c source/core/slang-token-reader.cpp
Expected Behavior
Slang compiles successfully when SLANG_DISABLE_EXCEPTIONS is defined and the toolchain has C++ exception support disabled.
Actual Behavior
source/core/slang-token-reader.h:176:70: error: exception handling disabled, use ‘-fexceptions’ to enable
Environment
- Slang:
v2026.16-31-gc1cffad25
Issue Description
Slang does not compile when
SLANG_DISABLE_EXCEPTIONSis defined and C++ exceptions are disabled.Reproducer Code
From a checkout with submodules initialized:
Expected Behavior
Slang compiles successfully when
SLANG_DISABLE_EXCEPTIONSis defined and the toolchain has C++ exception support disabled.Actual Behavior
Environment
v2026.16-31-gc1cffad25