[Issue 717] New: toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 22 05:25:03 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=717

           Summary: toobj.c:191: virtual void ClassDeclaration::toObjFile():
                    Assertion `!scope' failed.
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


(Originally posted by bobef <bobef at lessequal.com> on 2006-03-01
as news:du4ojh$1b0n$1 at digitaldaemon.com)

#
# template T(){
#    class A : B{
#    }
#
#    class B : A{
#    }
# }
#
# void main(){
#    mixin T!();
# }
#

and 

#
# template T(){
#    class B : A{
#    }
#
#    class A{
#    }
# }
#
# void main(){
#    mixin T!();
# }
#

cause the compiler message:
toobj.c:195: virtual void ClassDeclaration::toObjFile(): Assertion `!scope'
failed

test cases:
http://dstress.kuehne.cn/nocompile/c/class_22_C.d
http://dstress.kuehne.cn/nocompile/c/class_22_E.d


-- 



More information about the Digitalmars-d-bugs mailing list