[Issue 18356] New: no property 'tempCString' for type 'const(char)[]'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 2 03:10:03 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18356
Issue ID: 18356
Summary: no property 'tempCString' for type 'const(char)[]'
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: bitworld at qq.com
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("from.addr at gmail.com", "password");
smtp.mailTo = ["<to.addr at gmail.com>"];
smtp.mailFrom = "<from.addr at gmail.com>";
smtp.message = "Example Message";
smtp.perform();
}
--
More information about the Digitalmars-d-bugs
mailing list