[Issue 7199] New: std.string.indexof cannot be compiled with -inline
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Jan  2 07:30:13 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7199
           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
        AssignedTo: nobody at puremagic.com
        ReportedBy: r.sagitario at gmx.de
--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 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
std.string.indexOf!
(char,char).indexOf.simpleMindedFind!(__lambda6,const(char)[],const(char)[]).sim
pleMindedFind is a nested function and cannot be accessed from main
This works with dmd 2.057 or without -inline.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list