[Issue 3238] New: Template function reference being made without the template body being generated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 9 20:53:25 PDT 2009


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

           Summary: Template function reference being made without the
                    template body being generated
           Product: D
           Version: 2.031
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: burton-radons at shaw.ca


Given these two files (noting that the original file didn't have an error in
it, it just allowed me to cut it down further), a.d:

  struct S (T)
  {
    void m ()
    {
      intentional mistake;
    }
  }

  S! (T) f (T) ()
  {
    return S! (T) ();
  }

b.d:

  import a;

  void main ()
  {
    f! (char) ().m ();
  }

Compile them separately then link them together. The link fails because b.obj
has a reference to _D1a8__T1STaZ1S1mMFZv but doesn't have a COMDAT for it (not
that it could compile it).

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