Thread overview
[Issue 17299] [Reg 2.071] Compile failure only on -de
[Issue 17299] Compile failure only on -de
Apr 06, 2017
Johan Engelen
Apr 09, 2017
Martin Nowak
Apr 11, 2017
Walter Bright
Apr 11, 2017
Walter Bright
Dec 24, 2018
RazvanN
April 06, 2017
https://issues.dlang.org/show_bug.cgi?id=17299

Johan Engelen <jbc.engelen@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry

--
April 09, 2017
https://issues.dlang.org/show_bug.cgi?id=17299

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu
            Summary|Compile failure only on -de |[Reg 2.071] Compile failure
                   |                            |only on -de

--
April 11, 2017
https://issues.dlang.org/show_bug.cgi?id=17299

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
What's happening is that std.aaa is imported only within the function
lastIndexOf(const(T), dchar), yet is referred to in lastIndexOf(const(Char1)[]
s, const(Char2)[] sub).

At a minimum, this is a bug in the example.

--
April 11, 2017
https://issues.dlang.org/show_bug.cgi?id=17299

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
Considerably simplified as:

file sss/aaa.d
```
void toLower() { }
```

file test.d
```
module sss.str;

void bar(){
    import sss.aaa;
}

void endsWith(alias pred)()
   if (is(typeof(pred('a'))))
{
}

void lastIndexOf()
{
    endsWith!((a) => sss.aaa.toLower())();
}
```

--
December 24, 2018
https://issues.dlang.org/show_bug.cgi?id=17299

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
I cannot reproduce this. Close as invalid?

--
December 24, 2018
https://issues.dlang.org/show_bug.cgi?id=17299

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |johanengelen@weka.io
         Resolution|---                         |FIXED

--- Comment #4 from johanengelen@weka.io ---
Yep, seems to have been fixed in the meantime.

--