This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58062] [C++11] bogus __func__ lookup in lambda body
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Apr 2016 22:19:12 +0000
- Subject: [Bug c++/58062] [C++11] bogus __func__ lookup in lambda body
- Auto-submitted: auto-generated
- References: <bug-58062-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58062
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|wrong-code |
Status|UNCONFIRMED |RESOLVED
CC| |msebor at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
C++ was clarified via core issue #1172
(www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1772) to define the
__func__ identifier "at the beginning of the compound-statement of the
lambda-expression" rendering this bug report no longer valid (at least not in
C++ 14). I don't think it's worth implementing something different for C++ 11
so I'm closing this report as invalid. (I note that this is also consistent
with what Clang does.)