[Bug fortran/84924] Erroneous error in C_F_POINTER
johnsonsr at ornl dot gov
gcc-bugzilla@gcc.gnu.org
Sat Mar 17 17:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84924
--- Comment #3 from Seth Johnson <johnsonsr at ornl dot gov> ---
That's correct, because those standards include TS 29113 which allows arrays to
be referenced. `-std=f2008ts` also works. The problem is that the usage
described is valid Fortran 2003 but is marked otherwise.
This is like the "const" qualifier raising an error with `gcc -std=c89` but
allowing it with `gcc -std=c99`. It's valid with C99, sure, but the feature is
allowed in the C89 standard as well.
More information about the Gcc-bugs
mailing list