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.