Bug 12236 – Inconsistent mangleof result

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-23T23:31:00Z
Last change time
2014-05-14T11:45:20Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-02-23T23:31:15Z
In both cases, getting mangleof should cause forward reference error. Test case: auto f1(int) { pragma(msg, f1.mangleof); // forward reference error -> OK } auto f2(T)(T) { pragma(msg, f2.mangleof); // weird output: "v" } void main() { f1(1); f2(1); }
Comment #1 by k.hara.pg — 2014-03-09T21:22:08Z
Comment #2 by github-bugzilla — 2014-05-14T11:45:17Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c589056b5cbe1eeeddc521c872aece529213daf1 fix Issue 12236 - Inconsistent mangleof result https://github.com/D-Programming-Language/dmd/commit/f32b823abcc5ec6fb687956bf739c488ac2b0bf5 Merge pull request #3370 from 9rnsr/fix_lambda Issue 12235 & 12236 & 12237 - fix issues around lambda