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) ); } -------------------------------------
Comment #1 by k.hara.pg — 2015-03-05T16:59:24Z
Comment #2 by github-bugzilla — 2015-03-19T14:38:49Z
Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/af850d4bf770d593269f9467fb8e147b7b02380d fix Issue 14247 - string within demangled symbol name should be made escape https://github.com/D-Programming-Language/druntime/commit/fc3aa22994202565b369afc68d66a1cfa079b7d6 Merge pull request #1186 from 9rnsr/fix14247 Issue 14247 - string within demangled symbol name should be made escape
Comment #3 by github-bugzilla — 2015-06-17T21:02:08Z
Comment #4 by github-bugzilla — 2017-07-19T17:41:13Z
Commits pushed to dmd-cxx at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/af850d4bf770d593269f9467fb8e147b7b02380d fix Issue 14247 - string within demangled symbol name should be made escape https://github.com/dlang/druntime/commit/fc3aa22994202565b369afc68d66a1cfa079b7d6 Merge pull request #1186 from 9rnsr/fix14247