[Issue 24105] New: Dip1000 C variadics not marked as scope should not accept scope arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 23 16:34:28 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24105
Issue ID: 24105
Summary: Dip1000 C variadics not marked as scope should not
accept scope arguments
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
Compile with -preview=dip1000:
@safe:
extern (C) void ben(int f, scope ...);
extern (C) void jer(int f, ...);
void bar(scope const char* p)
{
ben(3, p); // works
jer(3, p); // should fail
}
--
More information about the Digitalmars-d-bugs
mailing list