www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7466] New: Error without line number in recursive template expansion

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

           Summary: Error without line number in recursive template
                    expansion
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au



This is fail14.d in the test suite.


class A(T)
{
    .A!(A) x;
}

void main()
{
    A!(int);
}

Error: recursive template expansion for template argument fail14.A!(int).A

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


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |WORKSFORME



11:58:21 PDT ---
In 2.059:

foo.d(2): Error: class foo.A(T) recursive template expansion for template
argument foo.A!(int).A
foo.d(8): Error: template instance foo.A!(int) error instantiating
foo.d(8): Error: type has no effect in expression (A)

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