[Issue 1471] Linker error on template function. Error 42: Symbol Undefined ...

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 30 10:30:32 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=1471



--- Comment #2 from kennytm at gmail.com 2011-06-30 10:25:34 PDT ---
Reduced test case for 1.068:

-----------------------------------
void main(){
    const string s = "BOOM";
    int gremlins = 0;
    string bar = s[gremlins .. $];
}
-----------------------------------
Undefined symbols:
  "_D1y4mainFZv8__dollark", referenced from:
      _D1y4mainFZv8__dollark$non_lazy_ptr in y.o
     (maybe you meant: _D1y4mainFZv8__dollark$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
--- errorlevel 1
-----------------------------------

The equivalent for 2.054:

-----------------------------------
void main(){
    enum string s = "BOOM";
    int gremlins = 0;
    string bar = s[gremlins .. $];
}
-----------------------------------

-- 
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