[Issue 14588] undefined reference error while linking with -debug option to a static library.
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat May 16 06:14:40 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=14588
ryan at rcorre.net changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ryan at rcorre.net
--- Comment #2 from ryan at rcorre.net ---
More detail:
The following works:
------------------------
//testa.d
module testa.d;
void func(alias a)()
{
}
class A
{
    int i;
    void all()
    {
        func!(i)();
    }
}
---------------------
The following fails:
---------------------
//testa.d
module testa.d;
void func(alias a)()
{
}
class A
{
    int i;
    void all()()
    {
        func!(i)();
    }
}
Note the addition of an empty compile-time parameter list
--
    
    
More information about the Digitalmars-d-bugs
mailing list