[Issue 18521] New: [REG 2.078.1] In a small DUB project wrong code generated with cov

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 25 12:22:48 UTC 2018


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 at puremagic.com
          Reporter: b2.temp at 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.

--


More information about the Digitalmars-d-bugs mailing list