re PR c++/51818 ([C++0x] Name mangling error using lambda expressions in GCC47)
authorJason Merrill <jason@redhat.com>
Wed, 11 Jan 2012 20:26:44 +0000 (15:26 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 11 Jan 2012 20:26:44 +0000 (15:26 -0500)
commitb34e0e6fc844922bcd84583fc8dbaa0669afa5c0
treeaaa92595e280011c55e0c1bb7d361c882256dbc7
parentfaf00d3c168bc4cc7f50f5580216e854e62e51e3
re PR c++/51818 ([C++0x] Name mangling error using lambda expressions in GCC47)

PR c++/51818
* mangle.c (find_substitution): A type is only a substitution
match if we're looking for a type.
(write_nested_name): Use decl_mangling_context.

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