[Issue 4867] New: Postblit is not usable with const objects
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 14 12:33:05 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4867
Summary: Postblit is not usable with const objects
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: samukha at voliacable.com
--- Comment #0 from Max Samukha <samukha at voliacable.com> 2010-09-14 12:32:35 PDT ---
struct S
{
this(this)
{
}
}
void foo(ref const S s)
{
auto s2 = s;
}
void main()
{
}
Error: function test.S.__cpctor (ref S p) is not callable using argument types
(const(S)) const
It is not specified how postblit is supposed to interoperate with
const/immutable. Tagging the postblit function with 'const' doesn't help
(compilation fails with the same error).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list