mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
Fix 23722 - Lambdas are mangled incorrectly when using multiple compi… (#15343)
* Fix 23722 - Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code * Update test cases
This commit is contained in:
parent
4c645bbaf9
commit
a3abf1187e
44 changed files with 102 additions and 84 deletions
|
@ -138,7 +138,7 @@ immutable(void)* g10063(inout int* p) pure
|
|||
TEST_OUTPUT:
|
||||
---
|
||||
fail_compilation/testInference.d(154): Error: `pure` function `testInference.bar14049` cannot call impure function `testInference.foo14049!int.foo14049`
|
||||
fail_compilation/testInference.d(149): which calls `testInference.foo14049!int.foo14049.__lambda2`
|
||||
fail_compilation/testInference.d(149): which calls `testInference.foo14049!int.foo14049.__lambda_L147_C14`
|
||||
fail_compilation/testInference.d(148): which calls `testInference.impure14049`
|
||||
fail_compilation/testInference.d(143): which wasn't inferred `pure` because of:
|
||||
fail_compilation/testInference.d(143): `pure` function `testInference.impure14049` cannot access mutable static data `i`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue