www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 724] New: templated circular typedef in function causes: template.c:2735: TemplateDeclaration* TemplateInstance::findTemplateDeclaration(Scope*): Assertion `s->parent' failed.

reply d-bugmail puremagic.com writes:
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


-- 
Dec 23 2006
next sibling parent d-bugmail puremagic.com writes:
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


-- 
Dec 31 2006
prev sibling parent d-bugmail puremagic.com writes:
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


-- 
Oct 31 2007