July 14, 2021 [Issue 13165] Using -profile does extra control flow analysis, leading to spurious statement is not reachable warning | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13165 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com --- Comment #8 from Walter Bright <bugzilla@digitalmars.com> --- This is caused by the compiler (helpfully) inserting a `return 0;` statement at the end of main() if there isn't one there already. Since the statement in some cases is not reachable, then the warning is emitted. -- |
July 14, 2021 [Issue 13165] Using -profile does extra control flow analysis, leading to spurious statement is not reachable warning | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13165 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #9 from Dlang Bot <dlang-bot@dlang.rocks> --- @WalterBright created dlang/dmd pull request #12873 "fix Issue 13165 - Using -profile does extra control flow analysis, le…" fixing this issue: - fix Issue 13165 - Using -profile does extra control flow analysis, leading to spurious statement is not reachable warning https://github.com/dlang/dmd/pull/12873 -- |
July 14, 2021 [Issue 13165] Using -profile does extra control flow analysis, leading to spurious statement is not reachable warning | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13165 --- Comment #10 from Walter Bright <bugzilla@digitalmars.com> --- -profile affects it because extra code is injected in glue.d to support profiling. -- |
July 14, 2021 [Issue 13165] Using -profile does extra control flow analysis, leading to spurious statement is not reachable warning | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13165 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #11 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/dmd pull request #12873 "fix Issue 13165 - Using -profile does extra control flow analysis, le…" was merged into master: - 32683fbad1daf2da3e1c9059f5fb447987affc1c by Walter Bright: fix Issue 13165 - Using -profile does extra control flow analysis, leading to spurious statement is not reachable warning https://github.com/dlang/dmd/pull/12873 -- |
Copyright © 1999-2021 by the D Language Foundation