www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18521] New: [REG 2.078.1] In a small DUB project wrong code

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

          Issue ID: 18521
           Summary: [REG 2.078.1] In a small DUB project wrong code
                    generated with cov
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: wrong-code
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

Use the shell script in the attached folder. Using the cov config gives a
different result from the default config.

Then in app.d, if you change 

   `writeln("====>>", lexer.array.length);`

to

   `writeln(lexer.array.length);`

then the problem disappears.

--
Feb 25 2018