Bug 12998 – std.net.curl fails to compile

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2014-06-27T04:54:00Z
Last change time
2014-10-04T07:58:35Z
Assigned to
nobody
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2014-06-27T04:54:48Z
I'm trying to build the head of the tree on Ubuntu 14.04 x86-64. dmd and druntime build fine. phobos fails as follows: std/net/curl.d(2140): Error: struct std.net.curl.HTTP static opCall is hidden by constructors and can never be called std/net/curl.d(2140): Please use a factory method instead, or replace all constructors with static opCall. std/net/curl.d(2830): Error: struct std.net.curl.FTP static opCall is hidden by constructors and can never be called std/net/curl.d(2830): Please use a factory method instead, or replace all constructors with static opCall. std/net/curl.d(3167): Error: struct std.net.curl.SMTP static opCall is hidden by constructors and can never be called std/net/curl.d(3167): Please use a factory method instead, or replace all constructors with static opCall. make: *** [generated/linux/release/64/libphobos2.a] Error 1
Comment #1 by code — 2014-10-04T07:58:35Z
There is no constructor in HTTP, so I'm how you got this error.