Test case:
void main(){
import std.stdio : File;
{
auto test = File("a"); // <- Essential
non_existent;
}
// Warning: statement is not reachable
string[] is_this_unreachable_question_mark;
}
Comment #1 by dlang-bot — 2023-09-21T12:48:47Z
@adamdruppe updated dlang/dmd pull request #15568 "make D great again" fixing this issue:
- Fix 10532, 14835, 20522 by adding test cases
https://github.com/dlang/dmd/pull/15568
Comment #2 by dlang-bot — 2023-10-01T16:36:37Z
dlang/dmd pull request #15568 "make D great again" was merged into master:
- cfd7cfd4382803e0252ebe1cf13d4c39a60209e5 by Dennis Korpel:
Fix 10532, 14835, 20522 by adding test cases
https://github.com/dlang/dmd/pull/15568