www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 152] New: ICE, CtorDeclaration::semantic(Scope*): Assertion `tf

Date: Sun, 17 Aug 2014 08:00:36 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

http://bugzilla.gdcproject.org/show_bug.cgi?id=152

            Bug ID: 152
           Summary: ICE, CtorDeclaration::semantic(Scope*): Assertion `tf
                    && tf->ty == Tfunction' failed
           Product: GDC
           Version: 4.9.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: ketmar ketmar.no-ip.org

Created attachment 74
  --> http://bugzilla.gdcproject.org/attachment.cgi?id=74&action=edit
test case

when i try to compile my project, i got ICE with this message:

cc1d: ../../gcc-4.9.1/gcc/d/dfrontend/func.c:4048: virtual void
CtorDeclaration::semantic(Scope*): Assertion `tf && tf->ty == Tfunction'
failed.
(null):0: confused by earlier errors, bailing out


seems that it was caused by 'import' inside struct in piece.d. if i'll remove
that import, ICE disappears.

ICE will also disappear if i'll remove constructor in tree.d which causes
'undefined identifier' error.

-- 
You are receiving this mail because:
You are watching all bug changes.
Aug 17 2014