← Back to index
|
Original Bugzilla link
Bug 22883 – ImportC: sizeof(var) rejected if used as initializer of the same var
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-16T18:09:07Z
Last change time
2022-03-19T06:22:37Z
Keywords
ImportC
Assigned to
No Owner
Creator
Andrea Fontana
Comments
Comment #0
by trikkuz — 2022-03-16T18:09:07Z
test.c: void f() { int t = (int)(sizeof(t)); } dmd test.c test.c(1): Error: undefined identifier `t`
Comment #1
by bugzilla — 2022-03-19T06:22:37Z
This has already been fixed in master.