Summary: std.string.indexof cannot be compiled with -inline
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Rainer Schuetze <> 2012-01-02 07:30:11 
PST ---
With the latest version from github, this code fails to compile with "-inline":

module test;

import std.string;

int main()
    string s = "abcd";
    int index = indexOf(s, "b");
    return index;

m:\s\d\rainers\phobos\std\algorithm.d(2970): Error: function
pleMindedFind is a nested function and cannot be accessed from main

This works with dmd 2.057 or without -inline.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to