Thread overview
[Issue 724] New: templated circular typedef in function causes: template.c:2735: TemplateDeclaration* TemplateInstance::findTemplateDeclaration(Scope*): Assertion `s->parent' failed.
Dec 23, 2006
d-bugmail
Dec 31, 2006
d-bugmail
Nov 01, 2007
d-bugmail
December 23, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=724

           Summary: templated circular typedef in function causes:
                    template.c:2735: TemplateDeclaration*
                    TemplateInstance::findTemplateDeclaration(Scope*):
                    Assertion `s->parent' failed.
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: thomas-dloop@kuehne.cn


(Originally reported by Deewiant <deewiant.doesnotlike.spam@gmail.com> on 2006-02-11 as  news:dskdle$1838$1@digitaldaemon.com)

#
# struct Foo(TYPE) {
# }
#
# void main(){
#    typedef Foo!(int) Foo;
# }
#

test cases: http://dstres.kuehne.cn/nocompile/t/typedef_11_A.d http://dstres.kuehne.cn/nocompile/t/typedef_11_B.d http://dstres.kuehne.cn/nocompile/t/typedef_11_C.d http://dstres.kuehne.cn/nocompile/t/typedef_11_D.d http://dstres.kuehne.cn/nocompile/t/typedef_11_E.d http://dstres.kuehne.cn/nocompile/t/typedef_11_F.d http://dstres.kuehne.cn/nocompile/t/typedef_11_G.d


-- 

December 31, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=724





------- Comment #1 from thomas-dloop@kuehne.cn  2006-12-31 08:48 -------
The above URLs contain a typo:

http://dstress.kuehne.cn/nocompile/t/typedef_11_A.d http://dstress.kuehne.cn/nocompile/t/typedef_11_B.d http://dstress.kuehne.cn/nocompile/t/typedef_11_C.d http://dstress.kuehne.cn/nocompile/t/typedef_11_D.d http://dstress.kuehne.cn/nocompile/t/typedef_11_E.d http://dstress.kuehne.cn/nocompile/t/typedef_11_F.d http://dstress.kuehne.cn/nocompile/t/typedef_11_G.d


-- 

November 01, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=724


bugzilla@digitalmars.com changed:

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




------- Comment #2 from bugzilla@digitalmars.com  2007-10-31 20:44 -------
Works in dmd 1.022 and 2.006


--