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++/58062] [C++11] bogus __func__ lookup in lambda body


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

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