[Bug c++/58062] [C++11] bogus __func__ lookup in lambda body
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Sat Aug 3 18:58:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58062
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The fact that MSVC is giving the "expected error" is a bit misleading. It
rejects it, because it still is not conforming and is not aware of __func__ in
any context. But I agree that correct MSVC behaviour can be deduced when
__FUNCTION__ is used instead.
While I agree that gcc is not conforming I would like to add that many existing
compilers do not and to my knowledge there is an core language issue planned in
regard to exactly this problem, so I recommend to defer working on that.
More information about the Gcc-bugs
mailing list