https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64973
Bug ID: 64973
Summary: Duplicate use-statements could be diagnosed
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: mikael at gcc dot gnu.org
This is a followup to PR63744 and was suggested in:
https://gcc.gnu.org/ml/fortran/2015-02/msg00036.htm
We accept duplicate use-rename statements like:
use m, only: A => X
use m, only: A => X
But it doesn't make sense for someone to type them twice, so they may actually
be a typo. The compiler could diagnose it, probably under some flag
(Dominique suggested -Wall).
There is also:
use m, only: A => X, A => X
and also:
use m
use m