https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109897
--- Comment #2 from W.H.Ball at bham dot ac.uk --- > Can you confirm this? Yes, I get the same. I also get a nicer error message with -std=f2008. Thanks for finding this, since that's already a potential workaround I can investigate in the code that prompted this.