Skip to content

Commit

Permalink
fix Issue 13259 - [ICE] 'v.result' on line 191 in file 'todt.c'
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Aug 5, 2014
1 parent 5418b71 commit ad0b1f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/todt.c
Expand Up @@ -188,7 +188,6 @@ dt_t *Initializer_toDt(Initializer *init)

InitToDt v;
init->accept(&v);
assert(v.result);
return v.result;
}

Expand Down
8 changes: 8 additions & 0 deletions test/fail_compilation/ice13259.d
@@ -0,0 +1,8 @@
/*
TEST_OUTPUT:
---
fail_compilation/ice13259.d(8): Error: non-constant nested delegate literal expression __dgliteral3
---
*/

auto dg = delegate {};

0 comments on commit ad0b1f6

Please sign in to comment.