[Issue 4042] New: Unable to instantiate a struct template.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 2 10:26:00 PDT 2010


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

           Summary: Unable to instantiate a struct template.
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: e.insafutdinov at gmail.com


--- Comment #0 from Eldar Insafutdinov <e.insafutdinov at gmail.com> 2010-04-02 10:25:58 PDT ---
Created an attachment (id=598)
testcase

When compiling the attached code I get

main.d(51): Error: this for ref_ needs to be type QList not type
QList!(QGraphicsWidget)
main.d(51): Error: struct main.QList!(QGraphicsWidget).QList member ref_ is not
accessible

This bug caused a lot of headache and held off development of QtD for quite a
while. I was finally able to reduce it to the sensible sized
test-case(originally the number of source files was about 500). If you play
with the testcase you'll find out that even slight modifications will lead to
change of the error message or to disappearing of it. Something is going
horribly wrong in the compiler. The version I tested it with is 2.042 which is
not present on the list.

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


More information about the Digitalmars-d-bugs mailing list