www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15167] New: [Reg 2.069-devel] conflicting error with repeated

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

          Issue ID: 15167
           Summary: [Reg 2.069-devel] conflicting error with repeated
                    alias declaration
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

cat > bug.d << CODE
version (X86_64)
    alias ulong CARD64;

static if (true)
    alias ulong CARD64;
CODE

dmd -c bug

----
DMD v2.069-devel-6279af3 DEBUG
bug.d(5): Error: alias bug.CARD64 conflicts with alias bug.CARD64 at bug.d(2)
----

It might indeed be treated as conflict but it used to work with 2.068.2 as long
as one of the aliases is within a static if.

--
Oct 05 2015