Skip to content

Commit 65beda3

Browse files
chathhornDwight Guth
authored andcommitted
Fix initializer-related regression.
1 parent 3562c3a commit 65beda3

File tree

1 file changed

+2
-1
lines changed
  • semantics/c/language/translation/decl

1 file changed

+2
-1
lines changed

semantics/c/language/translation/decl/local.k

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ module C-DECL-LOCAL
9090
andBool (notBool isAutoType(T))
9191
[structural]
9292
rule declareInternalVariable(_, t(_, _, auto-type) => T, initValue(_, T::Type, _))
93-
[structural]
93+
rule declareInternalVariable(_, t(_, _, T::SimpleType), initValue(_, _, .K) => NoInit())
94+
requires T =/=K auto-type
9495
// We don't give local extern decls an entry in the "local-types" map in
9596
// order to detect this case.
9697
rule <k> (.K => CV("TDL1", "Extern declaration of "

0 commit comments

Comments
 (0)