www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14301] New: [2.067-rc1] Private symbols of module conflicts

https://issues.dlang.org/show_bug.cgi?id=14301

          Issue ID: 14301
           Summary: [2.067-rc1] Private symbols of module conflicts with
                    public from another
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: NCrashed gmail.com

Compiles on 2.066.1:

test.d:
```
module test;

class Cache {} 
```

app.d:
```
import test;
import std.algorithm;

void main() 
{
    Cache cache;
}
```

Output:
```
source/app.d(6): Error: module std.algorithm struct
std.algorithm.iteration.Cache(R, bool bidir) is private
source/app.d(6): Error: test.Cache at source/test.d(3) conflicts with
std.algorithm.iteration.Cache(R, bool bidir) at
/usr/include/dmd/phobos/std/algorithm/iteration.d(295)
```

--
Mar 17 2015