digitalmars.D.bugs - [Issue 18356] New: no property 'tempCString' for type 'const(char)[]'
- d-bugmail puremagic.com (33/33) Feb 01 2018 https://issues.dlang.org/show_bug.cgi?id=18356
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 puremagic.com Reporter: bitworld 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 gmail.com", "password"); smtp.mailTo = ["<to.addr gmail.com>"]; smtp.mailFrom = "<from.addr gmail.com>"; smtp.message = "Example Message"; smtp.perform(); } --
Feb 01 2018