Bug 19853 – Profiling broken?

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-05-08T09:22:29Z
Last change time
2024-12-13T19:03:16Z
Assigned to
No Owner
Creator
feklushkin.denis
Moved to GitHub: dmd#19563 →

Comments

Comment #0 by feklushkin.denis — 2019-05-08T09:22:29Z
DMD64 D Compiler v2.086.0 While compiling some code with -profile: std/regex/internal/parser.d(845,13): Warning: statement is not reachable Steps to reproduce: $ git clone https://github.com/ikod/dlang-requests.git $ dub test --build=profile Generating test runner configuration 'requests-test-std' for 'std' (library). Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847 Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847 Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847 Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847 Performing "profile" build using /usr/bin/dmd for x86_64. cachetools 0.1.2: building configuration "library"... requests 1.0.6+commit.2.g81d5d5d: building configuration "requests-test-std"... /usr/include/dmd/phobos/std/regex/internal/parser.d(845,13): Warning: statement is not reachable /usr/bin/dmd failed with exit code 1.
Comment #1 by feklushkin.denis — 2019-05-12T12:24:51Z
Reproduceable only on DMD
Comment #2 by kubo39 — 2019-05-14T01:42:36Z
minimize. Code: --- import std.regex; void issue19853() { auto r = regex("[\\.\u002e\u3002\uff0e\uff61]"); } --- Console: --- (dmd-2.086.0)$ dmd -c -inline -profile -w issue19853.d /home/kubo39/dlang/dmd-2.086.0/linux/bin64/../../src/phobos/std/regex/internal/parser.d(845): Warning: statement is not reachable dmd -c -inline -profile -w issue19853.d 1.68s user 0.18s system 99% cpu 1.858 total (dmd-2.086.0)$ echo $? 1 ---
Comment #3 by robert.schadek — 2024-12-13T19:03:16Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19563 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB