← Back to index
|
Original Bugzilla link
Bug 12302 – Assertion failure in expression.c (line 432) when using template isCallable
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-06T00:52:00Z
Last change time
2014-03-09T20:56:11Z
Keywords
ice, pull
Assigned to
nobody
Creator
goldmax3000
Comments
Comment #0
by goldmax3000 — 2014-03-06T00:52:05Z
DMD 2.065 class A { X x; struct X { int f() { return 1; } } auto opDispatch(string s, TArgs...)(TArgs args) { mixin("return x."~s~"(args);"); } } A func() { return null; } pragma(msg, isCallable!func); // Error The compilation failed with error: dmd: expression.c:432: Expression* resolvePropertiesX(Scope*, Expression*, Expression*): Assertion `fd->type->ty == Tfunction' failed.
Comment #1
by dlang-bugzilla — 2014-03-07T11:50:07Z
https://github.com/D-Programming-Language/dmd/pull/3366
Comment #2
by github-bugzilla — 2014-03-09T20:32:41Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/df44feed6de7e7392d2a7b42c6a72ec385702c3a
fix Issue 12302 - Assertion failure in expression.c (line 432) when using template isCallable
https://github.com/D-Programming-Language/dmd/commit/3e086a6ee3c99f35a28ea2595654dd59aa01deee
Merge pull request #3366 from CyberShadow/fix12302 fix Issue 12302 - Assertion failure in expression.c (line 432) when using template isCallable