Thread overview
[Issue 3660] New: Templates and shared functions don't mix
Jan 01, 2010
Jason House
Jan 13, 2010
Walter Bright
Jan 31, 2010
Walter Bright
January 01, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3660

           Summary: Templates and shared functions don't mix
           Product: D
           Version: 2.036
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: jason.james.house@gmail.com


--- Comment #0 from Jason House <jason.james.house@gmail.com> 2009-12-31 19:27:50 PST ---
Sample code:

=========================
struct foo{
  void bar(T)(T t){}
  void bar(T)(T t) shared {}
}
void main(){
  foo x;
  x.bar(1);
}
=========================

Result with dmd 2.037:
$ dmd test.d
test.d(7): Error: template test.foo.bar(T) matches more than one function
template declaration:
  bar(T)
and:
  bar(T)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 13, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3660


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2010-01-13 03:05:24 PST ---
Changeset 335

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 31, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3660


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2010-01-30 22:46:17 PST ---
fixed dmd 2.040

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------