summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index 2f4906826..c04cb73e4 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -1659,6 +1659,9 @@ namespace Slang
return nullptr;
if(!decl->hasModifier<ConstModifier>())
return nullptr;
+ // Extern static const is not considered compile-time constant by the front-end.
+ if (decl->hasModifier<ExternModifier>())
+ return nullptr;
if (isInterfaceRequirement(decl))
{