https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100954
--- Comment #2 from Taco Jerkface ---
Agreed. A typical user will use unit=42, when manually picking unit numbers.
However the bug remains for automatic, newunit unit numbers.
To reproduce:
1) Open a "newunit" file.
2) close file
3) write to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100954
Bug ID: 100954
Summary: writing to a character opens unit -10
Product: gcc
Version: 7.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran