D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4043 - Class is forward referenced when looking for sizeof
Summary: Class is forward referenced when looking for sizeof
Status: RESOLVED DUPLICATE of issue 4042
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Linux
: P2 critical
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-02 10:42 UTC by Eldar Insafutdinov
Modified: 2015-06-09 05:15 UTC (History)
1 user (show)

See Also:


Attachments
testcase (661 bytes, text/x-dsrc)
2010-04-02 10:43 UTC, Eldar Insafutdinov
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Eldar Insafutdinov 2010-04-02 10:42:37 UTC
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 Eldar Insafutdinov 2010-04-02 10:43:05 UTC
Created attachment 599 [details]
testcase
Comment 2 Max Samukha 2010-05-10 07:45:38 UTC
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 ***