www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21017] New: Tuple fails with inout and -allinst


          Issue ID: 21017
           Summary: Tuple fails with inout and -allinst
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: uplink.coder gmail.com

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

Opened in Phobos and not in DMD since it can be workaround in Phobos.

Jul 06 2020