Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 37f0da7

Browse files
BorisCarvajaldlang-bot
authored andcommitted
core.demangle: parse struct literal with function literal member as template value argument
1 parent 6a9738f commit 37f0da7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/core/demangle.d

+6-1
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,10 @@ pure @safe:
14691469
foreach ( i; 0 .. n )
14701470
{
14711471
putComma(i);
1472-
parseValue();
1472+
if (front == '_') // function literal symbol
1473+
parseMangledName(false, 1);
1474+
else
1475+
parseValue();
14731476
}
14741477
put( ')' );
14751478
return;
@@ -2503,6 +2506,8 @@ else
25032506
"pure @safe int std.format.getNth!(\"integer width\", std.traits.isIntegral, int, uint, uint).getNth(uint, uint, uint)"],
25042507
["_D3std11parallelism42__T16RoundRobinBufferTDFKAaZvTDxFNaNdNeZbZ16RoundRobinBuffer5primeMFZv",
25052508
"void std.parallelism.RoundRobinBuffer!(void delegate(ref char[]), bool delegate() pure @property @trusted const).RoundRobinBuffer.prime()"],
2509+
["_D6mangle__T8fun21753VSQv6S21753S1_DQBi10__lambda71MFNaNbNiNfZvZQCaQp",
2510+
"void function() pure nothrow @nogc @safe mangle.fun21753!(mangle.S21753(mangle.__lambda71())).fun21753"],
25062511
// Lname '0'
25072512
["_D3std9algorithm9iteration__T9MapResultSQBmQBlQBe005stripTAAyaZQBi7opSliceMFNaNbNiNfmmZSQDiQDhQDa__TQCtSQDyQDxQDq00QCmTQCjZQDq",
25082513
"pure nothrow @nogc @safe std.algorithm.iteration.MapResult!(std.algorithm.iteration.__anonymous.strip, "

0 commit comments

Comments
 (0)