[Issue 19302] New: statement not reachable in std.regex.internal.parser.Parser.parseAtom, only in -inline -profile builds
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Oct 12 11:07:30 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=19302
          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 at puremagic.com
          Reporter: john.loughran.colvin at gmail.com
// test.d
import std.regex;
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 ??
--
    
    
More information about the Digitalmars-d-bugs
mailing list