Bug 22949 – compiler error: struct with __traits(compiles, this.init), nonexistent import mixin, main calls nonexistent enum from other module

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-03-28T13:06:57Z
Last change time
2024-12-13T19:21:50Z
Assigned to
No Owner
Creator
FeepingCreature
Moved to GitHub: dmd#18095 →

Comments

Comment #0 by default_357-line — 2022-03-28T13:06:57Z
... leads to "Error: unknown." This may win points for most esoteric repro steps ever. And yes, this is dustmited from real code. Not AFL. Consider a test.d: struct Struct { enum e = __traits(compiles, Struct.init); import test2 : NonexistentSymbol; mixin NonexistentSymbol; } import test2; void main() { bla; } And a test2.d: enum bla = bloop; Then Error: unknown, please file report on issues.dlang.org ( see https://run.dlang.io/is/CXi4df )
Comment #1 by robert.schadek — 2024-12-13T19:21:50Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18095 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB