Skip to content

Commit

Permalink
Merge pull request #4061 from WalterBright/fix13600
Browse files Browse the repository at this point in the history
fix Issue 13600 - ICE in dwarf.c line 1949 with -g enabled and lazy void...
  • Loading branch information
9rnsr committed Oct 13, 2014
2 parents 183a24d + d4991d2 commit cb6172a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/toctype.c
Expand Up @@ -86,6 +86,11 @@ class ToCtypeVisitor : public Visitor
type *tp = Type_toCtype(arg->type);
if (arg->storageClass & (STCout | STCref))
tp = type_allocn(TYref, tp);
else if (arg->storageClass & STClazy)
{ // Mangle as delegate
type *tf = type_function(TYnfunc, NULL, 0, false, tp);
tp = type_delegate(tf);
}
ptypes[i] = tp;
}

Expand Down
13 changes: 13 additions & 0 deletions test/compilable/test13600.d
@@ -0,0 +1,13 @@
// REQUIRED_ARGS: -g

class Retry
{
alias bool delegate ( lazy void ) SuccessDecider;

SuccessDecider success_decide;

void on_retry ( )
{
}
}

0 comments on commit cb6172a

Please sign in to comment.