[Bug c++/30811] __FUNCTION__ allowed in function declaration

sebor at roguewave dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 9 18:25:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list