D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 9031 - No error line number with not callable postblit
Summary: No error line number with not callable postblit
Status: RESOLVED DUPLICATE of issue 8954
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 major
Assignee: No Owner
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2012-11-15 04:51 UTC by bearophile_hugs
Modified: 2013-05-03 05:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2012-11-15 04:51:58 UTC
From code by Dan:
http://forum.dlang.org/thread/jbdxsfkpxmsiqcunuppj@forum.dlang.org


struct Foo {
    this(this) {}
}
alias const(Foo)[int] Bar;
void main() {
    Bar b;
    foreach (value; b) {}
}



DMD 2.061alpha gives no error line number:

Error: function test2.Foo.__postblit () is not callable using argument types () const
Comment 1 Maxim Fomin 2013-05-03 05:21:57 UTC

*** This issue has been marked as a duplicate of issue 8954 ***