This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30811] __FUNCTION__ allowed in function declaration
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Mar 2007 18:25:11 -0000
- Subject: [Bug c++/30811] __FUNCTION__ allowed in function declaration
- References: <bug-30811-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from sebor at roguewave dot com 2007-03-09 18:25 -------
(In reply to comment #5)
Good point! I hadn't thought of that. Since that option is out and __FUNCTION__
should simply behave identically to __func__ and be disallowed in global or
namespace scope function argument lists, or its documentation should be changed
to say that unlike __func__, __FUNCTION__ is allowed in argument lists of C++
functions declared at namespace scope.
The point is that if the two are documented to be interchangeable users ought
to be able to switch between one and the other with no change in behavior.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30811