D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6530 - Internal error: backend\symbol.c 1032
Summary: Internal error: backend\symbol.c 1032
Status: RESOLVED DUPLICATE of issue 4940
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 major
Assignee: No Owner
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2011-08-18 18:22 UTC by David Simcha
Modified: 2015-06-09 01:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description David Simcha 2011-08-18 18:22:39 UTC
struct S {
    int a, b, c;
}

struct HasPostblit {
    this(this) {}  // Bug goes away without this.
}

auto toRandomAccessTuple(T...)(T input, HasPostblit hasPostblit) {
    return S(1, 2, 3);
}

void doStuff(T...)(T args) {
    HasPostblit hasPostblit;
    
    // Bug goes away without the .tupleof.
    auto foo = toRandomAccessTuple(args, hasPostblit).tupleof;
}

void main() {
    doStuff(1, 2, 3);
}
Comment 1 yebblies 2011-08-29 22:13:25 UTC

*** This issue has been marked as a duplicate of issue 4940 ***