[Bug c++/44160] [C++0x] a mysterious error on __func__ in a lambda expression

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Tue May 10 11:25:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44160

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot
                   |                            |com

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-10 11:10:21 UTC ---
I found where exactly things go wrong first: in cp_make_fname_decl,
current_binding_level->kind is sk_function_parms, thus error_mark_node is
returned. In the aforementioned case of f(), it's sk_block, makes sense.

Jason, any tip about this meaningless binding level?



More information about the Gcc-bugs mailing list