January 15, 2021 [Issue 21551] New: string literal followed by address expression pass the parsing phase | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21551 Issue ID: 21551 Summary: string literal followed by address expression pass the parsing phase Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: accepts-invalid Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: b2.temp@gmx.com this seems to be accepted by the parser and is rejected during semantic --- module runnable; void stuff(string){} void main() { "a" &stuff; } --- with > /tmp/temp_7F751D15BED0.d:7:10: Error: function `runnable.stuff(string _param_0)` is not callable using argument types `()` -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply