demangler: don't treat lambda as a substitution candidate

libiberty/ChangeLog:

	PR demangler/96143
	* cp-demangle.c (d_lambda): Don't add substitution candidate.
	* testsuite/demangle-expected: Update a few existing test cases
	accordingly, and add a new test case.
This commit is contained in:
Ian Lance Taylor 2020-07-10 09:34:28 -07:00
parent 004bb936d6
commit bae45b8be5
2 changed files with 9 additions and 8 deletions

View File

@ -3776,9 +3776,6 @@ d_lambda (struct d_info *di)
ret->u.s_unary_num.num = num;
}
if (! d_add_substitution (di, ret))
return NULL;
return ret;
}

File diff suppressed because one or more lines are too long