Bug 18521 – [REG 2.078.1] In a small DUB project wrong code generated with cov

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-02-25T12:22:48Z
Last change time
2018-02-28T21:34:22Z
Keywords
wrong-code
Assigned to
No Owner
Creator
Basile B.

Attachments

IDFilenameSummaryContent-TypeSize
1682bug.ziptestcaseapplication/zip1087

Comments

Comment #0 by b2.temp — 2018-02-25T12:22:48Z
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.
Comment #1 by b2.temp — 2018-02-25T12:24:21Z
Created attachment 1682 testcase
Comment #2 by code — 2018-02-28T18:14:23Z
You're attachment is missing source/app.d and the build.sh command does not use -cov. Also better post examples than to provide a downloadable zip file. I still think you're seeing a codegen bug introduced by https://github.com/dlang/dmd/pull/7654, so this is likely a duplicate of issue 18296. Please confirm that 2.079.0-rc.1 fixes your problem.
Comment #3 by b2.temp — 2018-02-28T21:34:22Z
(In reply to Martin Nowak from comment #2) > You're attachment is missing source/app.d and the build.sh command does not > use -cov. Also better post examples than to provide a downloadable zip file. > > I still think you're seeing a codegen bug introduced by > https://github.com/dlang/dmd/pull/7654, so this is likely a duplicate of > issue 18296. Please confirm that 2.079.0-rc.1 fixes your problem. Problem is fixed but the zip file contained valid material ! I even used it to verify.