www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19853] New: Profiling broken?

https://issues.dlang.org/show_bug.cgi?id=19853

          Issue ID: 19853
           Summary: Profiling broken?
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: feklushkin.denis gmail.com

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.

--
May 08 2019