This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]