Bug 12926 – backend/cgcs.c 351

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-15T20:16:00Z
Last change time
2014-07-29T18:03:34Z
Keywords
ice
Assigned to
nobody
Creator
vlevenfeld

Comments

Comment #0 by vlevenfeld — 2014-06-15T20:16:19Z
import std.range; struct Foo { struct Baz {} auto call (T)(T) { return bazs.back; // BUG if I remove or change this, it will compile } Baz[] bazs; // BUG using int instead of Baz, it will compile } struct Bar { auto option (int) { return 0; } ~this () // BUG removing this destructor, it will compile { } } void main () { Foo foo; foo.call (Bar ().option (1)); // BUG if I remove .option(1) it will compile } Internal error: backend/cgcs.c 351
Comment #1 by vlevenfeld — 2014-06-17T06:18:03Z
Comment #2 by hsteoh — 2014-06-17T16:32:11Z
Possibly related: issue #11763
Comment #3 by yebblies — 2014-07-29T18:03:34Z
*** This issue has been marked as a duplicate of issue 11763 ***