[Issue 13165] Using -profile does extra control flow analysis, leading to spurious statement is not reachable warning
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 14 08:05:02 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=13165
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #8 from Walter Bright <bugzilla at 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.
--
More information about the Digitalmars-d-bugs
mailing list