[Bug fortran/88190] compile_options.allow_std does not allow to distinguish between GFC_STD_GNU and GFC_STD_LEGACY

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Sat Dec 1 21:01:00 GMT 2018


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

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Created attachment 45135
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45135&action=edit
WIP patch

> My next step will be to check that replacing GFC_STD_LEGACY with
> GFC_STD_GNU restores the previous behavior.

That did not work well. What I have done in the patch is to 'or' GFC_STD_GNU
with GFC_STD_LEGACY where appropriate.

With the patch I have mostly recovered the behavior without it, except for a
few places where 'Legacy' has been replaced with 'GNU'.

Comments welcomed!


More information about the Gcc-bugs mailing list