Bug 4043 – Class is forward referenced when looking for sizeof

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-04-02T10:42:00Z
Last change time
2015-06-09T05:15:04Z
Assigned to
nobody
Creator
e.insafutdinov

Attachments

IDFilenameSummaryContent-TypeSize
599main.dtestcasetext/x-dsrc661

Comments

Comment #0 by e.insafutdinov — 2010-04-02T10:42:37Z
main.d(41): Error: class main.QGraphicsWidget is forward referenced when looking for 'sizeof' main.d(14): Error: template instance main.QTypeInfo!(QGraphicsWidget) error instantiating main.d(49): instantiated from here: QList!(QGraphicsWidget) It is based on the a modified testcase from http://d.puremagic.com/issues/show_bug.cgi?id=4042 and may actually be the same issue. But since it shows quite a different error message, I am putting it as a separate report.
Comment #1 by e.insafutdinov — 2010-04-02T10:43:05Z
Created attachment 599 testcase
Comment #2 by samukha — 2010-05-10T07:45:38Z
The same as 4042 There is an error in the test-case: - auto x = QList!(QGraphicsWidget); + QList!(QGraphicsWidget) x; The corrected test-case compiles with dmd rev http://dsource.org/projects/dmd/changeset/477 *** This issue has been marked as a duplicate of issue 4042 ***