Bug 6804 – shared File doesn't compile

Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-10-11T22:36:30Z
Last change time
2018-01-27T12:19:29Z
Keywords
bootcamp, diagnostic
Assigned to
No Owner
Creator
Jerry Quinn
See also
https://issues.dlang.org/show_bug.cgi?id=15768

Comments

Comment #0 by jlquinn — 2011-10-11T22:36:30Z
Compiling the following: import std.stdio; shared File f; gives this error: ~/dmd2/linux/bin64/dmd junk1.d junk1.d(2): Error: destructor std.stdio.File.~this () is not callable using argument types () Even if File should not be shareable, the error message is non-informative. DMD 2.055, Linux 64 bit, on Ubuntu 10.04
Comment #1 by john.loughran.colvin — 2013-07-20T13:54:46Z
Just ran in to this. Is there any sensible way to be able to create a shared File object?
Comment #2 by atila.neves — 2018-01-27T12:19:29Z
*** This issue has been marked as a duplicate of issue 8295 ***