Bug 18356 – no property 'tempCString' for type 'const(char)[]'
Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-02T03:10:03Z
Last change time
2018-02-02T12:54:48Z
Assigned to
No Owner
Creator
Heromyth
Comments
Comment #0 by bitworld — 2018-02-02T03:10:03Z
Failed to compiling the test code below with DMD 2.078+. Here is the error message:
/usr/include/dmd/phobos/std/net/curl.d(4058,44): Error: no property 'tempCString' for type 'const(char)[]'
source/app.d(47,4): Error: template instance std.net.curl.SMTP.mailTo!() error instantiating
It's OK for DMD 2.077.1.
===========Test code =============
import std.net.curl;
void main()
{
// Send an email with SMTPS
auto smtp = SMTP("smtps://smtp.gmail.com");
smtp.setAuthentication("[email protected]", "password");
smtp.mailTo = ["<[email protected]>"];
smtp.mailFrom = "<[email protected]>";
smtp.message = "Example Message";
smtp.perform();
}
Comment #1 by greensunny12 — 2018-02-02T03:38:14Z
Already fixed on dmd-nightly:
dmd 2.078.0: https://run.dlang.io/is/qoM8mc
dmd 2.079.0 (aka nightly): https://run.dlang.io/is/CMHFTB
could you check?
curl dlang.org/install.sh | bash -s dmd-nightly
The 2.078.2 will be released very soon, so I'm not sure whether a cherry-pick will be successful.
OTOH 2.079.0 will be released in one month :/
Comment #2 by bitworld — 2018-02-02T06:49:40Z
The test code passed with DMD-nightly and failed with DMD 2.078.2.