re PR c++/49276 ([C++0x] Segmentation fault with default lambda parameter in member...
authorJakub Jelinek <jakub@redhat.com>
Fri, 3 Jun 2011 20:19:42 +0000 (22:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 3 Jun 2011 20:19:42 +0000 (22:19 +0200)
commite9b398aef87d9fb8a1ca8d777bb084d43cadf702
treeec4e16abb2986a64c32848ffa5026f025be5b54f
parent543ad675a6dd1a89019afc297ad052ca02aacc35
re PR c++/49276 ([C++0x] Segmentation fault with default lambda parameter in member function)

PR c++/49276
* mangle.c (write_nested_name): Use CP_DECL_CONTEXT instead of
DECL_CONTEXT.

* g++.dg/cpp0x/lambda/lambda-mangle2.C: New test.

From-SVN: r174619
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mangle2.C [new file with mode: 0644]