Bug 13303 – Internal error: ..\ztc\cgcs.c 351 with rvalue Variant.get call

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-15T23:08:00Z
Last change time
2014-10-21T20:08:12Z
Keywords
ice, pull
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-08-15T23:08:30Z
////// test.d ///// import std.variant; struct S {} Variant value(); void test() { value.get!S; } /////////////////// This is a Phobos regression which uncovered a DMD ICE; introduced in: https://github.com/D-Programming-Language/phobos/pull/2147 Although the bug is in the compiler, the regression is caused by a change in Phobos. Full reduction: /////// test.d /////// struct Variant { ~this() { } @property get(T)() { union Buf { } Buf buf; return buf; } } struct S {} Variant value(); void test() { value.get!S; } //////////////////////
Comment #1 by bugzilla — 2014-08-19T06:08:29Z
Smaller test case: struct Buf { } struct Variant { ~this(); Buf get(); } void test() { Variant value(); value.get(); }
Comment #2 by bugzilla — 2014-08-19T20:40:59Z
Comment #3 by bugzilla — 2014-08-19T20:41:37Z
*** Issue 11763 has been marked as a duplicate of this issue. ***
Comment #4 by github-bugzilla — 2014-08-27T21:35:44Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ec981291619fea198b945dbe6cc154f833bd4970 fix Issue 13303 - Internal error: ..\ztc\cgcs.c 351 with rvalue Variant.get call https://github.com/D-Programming-Language/dmd/commit/6255bf128aacde23b9d6fb531fadb6413de566b1 Merge pull request #3879 from WalterBright/fix13303 [Reg] fix Issue 13303 - Internal error: ..\ztc\cgcs.c 351 with rvalue Variant.get call
Comment #5 by github-bugzilla — 2014-08-28T04:10:27Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9ca146e70b294a0a205a5c7a3345d960cbe08c64 Merge pull request #3879 from WalterBright/fix13303 [Reg] fix Issue 13303 - Internal error: ..\ztc\cgcs.c 351 with rvalue Variant.get call
Comment #6 by mrsmith33 — 2014-10-20T21:27:26Z
DMD32 D Compiler v2.067.0-b1 issue still exists
Comment #7 by mrsmith33 — 2014-10-21T20:08:12Z
nevermind