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.
Created attachment 599 [details] testcase
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 ***