www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3754] New: Templates related bug

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3754

           Summary: Templates related bug
           Product: D
           Version: 1.056
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: borislav.asdf gmail.com


--- Comment #0 from borislav.asdf gmail.com 2010-01-30 06:02:23 PST ---
I get these errors DMD 1.055 (it fails in 1.056 too):

(void(char[] _param_0))()
bug.d(2): Error: expected 1 function arguments, not 0
(void(char[] _param_0))()
bug.d(15): Error: template instance bug.Foo!(a) error instantiating

//code----------------------------------------------------------------------------------------------

void Foo(alias X)() {
        pragma(msg,typeof(X).stringof);
}

class A {
        void a(char[]) {
        }

        void b() {
        }
}

void main() {

        Foo!(A.a)(); //doesnt work
        Foo!(A.b)(); //works

}

//end of code
----------------------------------------------------------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 30 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3754


Stewart Gordon <smjg iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|NEW                         |RESOLVED
                 CC|                            |smjg iname.com
         Resolution|                            |WORKSFORME


--- Comment #1 from Stewart Gordon <smjg iname.com> 2012-02-05 14:46:34 PST ---
Cannot reproduce in DMD 1.071 or 2.057.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 05 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3754


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
         Resolution|WORKSFORME                  |FIXED


--- Comment #2 from Don <clugdbug yahoo.com.au> 2012-02-08 12:05:40 PST ---
It was fixed in 1.069.

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