Bug 8014 – D1: ICE(elfobj.c) delegate literal as alias template parameter

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2012-05-02T01:30:00Z
Last change time
2013-11-24T20:02:34Z
Keywords
ice
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2012-05-02T01:30:56Z
struct S { int delegate(int n) x; void foo(alias a)() { x = a; } } int delegate(int n) kkk = delegate(int n) { return n; }; void main() { S s; s.foo!(kkk); } bug.d(17): Error: non-constant nested delegate literal expression __dgliteral1 Internal error: ../ztc/elfobj.c 455
Comment #1 by bugzilla — 2013-10-06T22:53:51Z
I get the error message, but not the internal error, with 2.064 head. Relabeled as D1 only.
Comment #2 by k.hara.pg — 2013-11-24T20:02:34Z
D1 is not supported anymore.