[Issue 12754] MAC link error for template to static value

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 15 17:26:16 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12754

--- Comment #9 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to deadalnix from comment #8)
> (In reply to monarchdodra from comment #6)
> > (In reply to Vladimir Panteleev from comment #5)
> > > If this is a regression, can you indicate a version when this worked? I'm
> > > getting the same error with 2.065.
> > 
> > AFAIK, it's not a reg. I remember having had since since long ago, but
> > reduced it only now.
> > 
> > I don't have access to a mac anymore either, so I wouldn't even be able to
> > check...
> 
> It compile in 2.065, do not in the rc.

Not for me:

bash-3.2$ dmd | head -1
DMD64 D Compiler v2.065
bash-3.2$ dmd -lib foo/traits.d foo/file.d -ofmylib
bash-3.2$ dmd -run main.d mylib.a
Undefined symbols for architecture x86_64:
  "_D3foo4file1F6__ctorMFNciZS3foo4file1F", referenced from:
      __Dmain in main.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
--- errorlevel 1

Please provide a test case which works in 2.065 but not in master or the RC.

> It is not because it has been broken for a while in trunck that this isn't a
> regression.

I don't know how you got the impression that we made the conclusion based on
whether something "has been broken for a while in trunck".

--


More information about the Digitalmars-d-bugs mailing list