Bug 14247 – string within demangled symbol name should be made escape
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-03-05T04:41:00Z
Last change time
2017-07-19T17:41:13Z
Keywords
pull
Assigned to
nobody
Creator
jiki
Comments
Comment #0 by jiki — 2015-03-05T04:41:23Z
I wonder if I should post this as a compiler issue, because my problem is on the profiler output.
A function template can be instantiated with string literal.
After this is demangled, inprintable characters and quotes are not cared. Especially, line-break in a symbol name is undesirable.
-------------------------------------
import std.stdio;
import core.demangle;
string func(alias s)() { return s; }
void main(string[] args) {
writeln( func!"a\nb".mangleof );
writeln( demangle(func!"a\nb".mangleof) );
}
-------------------------------------