digitalmars.D.bugs - [Issue 14481] New: declaration.c:1888: Expression*
- via Digitalmars-d-bugs (36/36) Apr 22 2015 https://issues.dlang.org/show_bug.cgi?id=14481
https://issues.dlang.org/show_bug.cgi?id=14481 Issue ID: 14481 Summary: declaration.c:1888: Expression* VarDeclaration::getConstInitializer(bool): Assertion `type && init' failed. Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: yutopp gmail.com The following code causes assertion error. template someT(alias E) { alias someT = E; } mixin template Mix(alias E) { alias SomeAlias = someT!E; } struct Hoge { mixin Mix!E; enum E = 10; } (execution result: http://sc.yutopp.net/entries/553891d27777775a35c86200) An error message is ( dmd: declaration.c:1888: Expression* VarDeclaration::getConstInitializer(bool): Assertion `type && init' failed. ) DMD version is "DMD64 D Compiler v2.067". --
Apr 22 2015