This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53977] CPP: Support __func__/__FUNCTION__
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Jul 2012 08:14:15 +0000
- Subject: [Bug fortran/53977] CPP: Support __func__/__FUNCTION__
- Auto-submitted: auto-generated
- References: <bug-53977-4@http.gcc.gnu.org/bugzilla/>
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__.)