← Back to index
|
Original Bugzilla link
Bug 14481 – [REG2.066] ICE with forward reference of manifest constant on template arguments
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-23T06:59:00Z
Last change time
2015-06-17T21:04:58Z
Keywords
ice, pull
Assigned to
nobody
Creator
yutopp
Comments
Comment #0
by yutopp — 2015-04-23T06:59:46Z
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".
Comment #1
by k.hara.pg — 2015-04-23T13:16:56Z
https://github.com/D-Programming-Language/dmd/pull/4608
Comment #2
by github-bugzilla — 2015-04-25T00:42:01Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/30fad36dac6a2fb4855f46f2a0e61548a9a8210b
fix Issue 14481 - ICE with forward reference of manifest constant on template arguments
https://github.com/D-Programming-Language/dmd/commit/c525ebd0e02b99039828689c2a89c776a9192ba2
Merge pull request #4608 from 9rnsr/fix14481 [REG2.066] Issue 14481 - ICE with forward reference of manifest constant on template arguments
Comment #3
by github-bugzilla — 2015-06-17T21:04:58Z
Commits pushed to stable at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/30fad36dac6a2fb4855f46f2a0e61548a9a8210b
fix Issue 14481 - ICE with forward reference of manifest constant on template arguments
https://github.com/D-Programming-Language/dmd/commit/c525ebd0e02b99039828689c2a89c776a9192ba2
Merge pull request #4608 from 9rnsr/fix14481