[Bug c++/30811] __FUNCTION__ allowed in function declaration
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 9 03:43:00 GMT 2007
------- Comment #5 from bangerth at dealii dot org 2007-03-09 03:43 -------
If you make it defined earlier than the standard says, then you
get into trouble for cases like this:
void f() {
struct X {
void g(const char * = __FUNCTION__) {}
};
}
According to the N1970, this refers to the string "void f()", but
by your proposal it would be something like "...X::g()".
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30811
More information about the Gcc-bugs
mailing list