https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94709
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:4ea769a91dfa9142235c457b9db6ecc4e55072c4 commit r10-7872-g4ea769a91dfa9142235c457b9db6ecc4e55072c4 Author: Tobias Burnus <tob...@codesourcery.com> Date: Wed Apr 22 14:07:55 2020 +0200 [Fortran] Truncate warn with OpenMP/OpenACC/!GCC$ (PR94709) While '!$' with -fopenmp unsets too often load_line's seen_comment flag, this only affects <tab> warnings; for trunction warnings, gfc_next_char_literal re-handles the directives correctly. In terms of missed warnings, a directive that is completely in the truncated part is not diagnosted (as it starts with a '!'). PR fortran/94709 * scanner.c (load_line): In fixed form, also treat 'C' as comment and 'D'/'d' only with -fd-lines-as-comments. Treat '!$' with -fopenmp, '!$acc' with -fopenacc and '!GCC$' as non-comment to permit <tab> and truncation warnings. PR fortran/94709 * gfortran.dg/gomp/warn_truncated.f: New. * gfortran.dg/gomp/warn_truncated.f90: New.