[Bug fortran/53977] CPP: Support __func__/__FUNCTION__
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 16 08:14:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53977
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-07-16 08:14:15 UTC ---
A quick test of other Fortran compilers shows that this is not a widely
supported feature - none of the tried compilers supports it. In C, it falls
semantically into the preprocessor, even though it is implemented as compiler
feature.
In terms of the form, gcc's __FUNCTION__ looks much more like a CPP macro than
C99's __func__.
(As CPP is not a Fortran-tuned preprocessor, the semantic - when applied to
Fortran - is a bit unclear as are features like C99's __func__.)
More information about the Gcc-bugs
mailing list