www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19302] New: statement not reachable in


          Issue ID: 19302
           Summary: statement not reachable in
                    std.regex.internal.parser.Parser.parseAtom, only in
                    -inline -profile builds
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

// test.d
import std.regex;

 dmd test.d -inline -profile -w
phobos\std\regex\internal\parser.d(845): Warning: statement is not reachable It's trivial to fix this bug (just remove the offending "break" in std.regex.internal.parser.Parser.parseAtom), but I'm more interested in why on earth it only occurs with -inline -profile ?? --
Oct 12 2018