← Back to index
|
Original Bugzilla link
Bug 21387 – dmd.hdrgen - Wrong parent in pretty name for aggregate instantiated with lambda template
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-11-13T04:02:11Z
Last change time
2024-12-13T19:12:41Z
Assigned to
No Owner
Creator
kinke
Moved to GitHub: dmd#19820 →
Comments
Comment #0
by kinke — 2020-11-13T04:02:11Z
--- struct ChunkByImpl(alias pred) {} auto chunkBy(alias pred)() { return ChunkByImpl!pred(); } void main() { auto foo1 = () => chunkBy!((char a) => a == '_'); auto foo2 = () => chunkBy!((a) => a == '_'); import std.stdio; writeln("foo1: " , typeid(foo1()).name); writeln("foo2: " , typeid(foo2()).name); } --- Actual output: --- foo1: onlineapp.ChunkByImpl!(function (char a) pure nothrow @nogc @safe => cast(int)a == 95).ChunkByImpl foo2: onlineapp.main.__lambda2.ChunkByImpl!(__lambda1).ChunkByImpl --- Expected output for foo2: onlineapp.ChunkByImpl!(__lambda1).ChunkByImpl With QualifyTypes = true: onlineapp.ChunkByImpl!(onlineapp.main.__lambda2.__lambda1).ChunkByImpl
Comment #1
by robert.schadek — 2024-12-13T19:12:41Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/19820
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB