digitalmars.D.bugs - [Issue 22949] New: compiler error: struct with __traits(compiles,
- d-bugmail puremagic.com (33/33) Mar 28 2022 https://issues.dlang.org/show_bug.cgi?id=22949
https://issues.dlang.org/show_bug.cgi?id=22949 Issue ID: 22949 Summary: compiler error: struct with __traits(compiles, this.init), nonexistent import mixin, main calls nonexistent enum from other module Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: minor Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: default_357-line yahoo.de ... 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 ) --
Mar 28 2022