Bug 11059 – alias to symbol in different conditional compilation scope depends on lexical order

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-17T11:12:28Z
Last change time
2024-12-13T18:11:32Z
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#18672 →

Comments

Comment #0 by code — 2013-09-17T11:12:28Z
cat > bug.d << CODE static if (true) enum a = b; static if (true) enum b = 0; CODE dmd -c bug.d ---- Obviously this is a problem with semantic analysis being done in lexical order instead of lazily.
Comment #1 by robert.schadek — 2024-12-13T18:11:32Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18672 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB