summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-05-30 23:29:16 +0800
committerGitHub <noreply@github.com>2023-05-30 15:29:16 +0000
commit4c1396c3532d6ad4973177d1c97578989385f347 (patch)
tree619929db1811e4b675753cd28c88211cc7f04f0a /source
parentab284ca61d0c4c29ac7331b99a98f95bb3ad44e5 (diff)
Disallow duplicate enumerator names in the same enum (#2904)
Fixes https://github.com/shader-slang/slang/issues/2895
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-check-decl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 3fd7bee7a..c7a955f06 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -145,6 +145,7 @@ namespace Slang
#define CASE(TYPE) void visit##TYPE(TYPE* decl) { checkForRedeclaration(decl); }
+ CASE(EnumCaseDecl)
CASE(FuncDecl)
CASE(VarDeclBase)
CASE(SimpleTypeDecl)