Bug 21017 – Tuple fails with inout and -allinst

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-07-06T07:51:04Z
Last change time
2023-04-05T11:11:40Z
Assigned to
Stefan Koch
Creator
Stefan Koch

Comments

Comment #0 by uplink.coder — 2020-07-06T07:51:04Z
The following code will cause the compiler to ICE, when compiled with -allinst. import std.typecons : Tuple; pragma(msg, is(Tuple!(inout int))); This is due to an erroneous function definition surviving until code-generation. Opened in Phobos and not in DMD since it can be workaround in Phobos.
Comment #1 by b2.temp — 2020-07-06T07:53:34Z
I'm sorry but ICE is dmd, there's no debate on this. Also if you fix phobos we will lost the test case for the ICE.
Comment #2 by dlang-bot — 2020-07-06T07:54:33Z
@UplinkCoder created dlang/phobos pull request #7551 "Rewrite isTuple to be more efficient and workaround back-end segfault" fixing this issue: - Fix #21017 - Tuple fails with inout and -allinst https://github.com/dlang/phobos/pull/7551
Comment #3 by b2.temp — 2020-07-06T07:55:31Z
*loose anyway. You need to minimize before proposing a workaround in phobos.
Comment #4 by razvan.nitu1305 — 2023-04-05T11:11:40Z
*** This issue has been marked as a duplicate of issue 21018 ***