Bug 9031 – No error line number with not callable postblit
Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-11-15T04:51:00Z
Last change time
2013-05-03T05:21:57Z
Keywords
diagnostic
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2012-11-15T04:51:58Z
From code by Dan:
http://forum.dlang.org/thread/[email protected]
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 by maxim — 2013-05-03T05:21:57Z
*** This issue has been marked as a duplicate of issue 8954 ***