[Bug fortran/92091] Inconsistent diagnostics for INCLUDE vs. #include

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 22 19:52:16 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92091

--- Comment #3 from anlauf at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #2)
> Am I correct to understand that #include is handled by the preprocessor?

Yes.

Other compilers always show the path to the included file in the warning.
E.g. Intel:

% ifort pr92091.f90 -stand -Iotherdir -c
otherdir/inc1.f90(1): warning #7346: The CHARACTER* form of a CHARACTER
declaration is an obsolescent feature in Fortran 2003.
  character*1 c
------------^
inc2.f90(1): warning #7346: The CHARACTER* form of a CHARACTER declaration is
an obsolescent feature in Fortran 2003.
  character*2 d
------------^

Similarly for pr92091.F90 .


More information about the Gcc-bugs mailing list