https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119827
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2025-04-16 Status|UNCONFIRMED |WAITING --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #3) > (In reply to Visagan Ravindran from comment #2) > > Thank you for your reply. A colleague informed me that the NAG compiler > > picked this up as an error, but I suppose this is entirely in keeping with > > the standard. > > I'm surprise that NAG issued an error. A warning might be appropriate. > I edited the above F2023 quote to highlight the key sentence. The > "otherwise" clause only applies after the determination of a zero-length > string. Which NAG version gives an error? Which compiler flags? I tried: NAG Fortran Compiler Release 7.2(Shin-Urayasu) Build 7200 and even with -C=all it did not give any errors.