Wrong stats of `pragma(inline, true)`-functions when compiling with `-cov` flag
Stefan Koch
uplink.coder at googlemail.com
Sun Aug 2 12:06:48 UTC 2020
On Sunday, 2 August 2020 at 11:15:53 UTC, Per Nordlöw wrote:
> I've noticed that the results of
>
> dmd -cov
>
> are incorrect for inline-functions such as
>
> void f()
> {
> pragma(inline, true);
> ...
> }
>
> eventhough I feed `dmd` neither the `-O` nor `-inline` nor
> `-release` flag.
>
> The problem goes away when I remove the `pragma(inline,
> true)`-directives from the affected function.
>
> Is this a know issue?
Well the inliner is now active even without the inline flag.
If you use an older compiler the issue goes away.
More information about the Digitalmars-d
mailing list