[Issue 23394] New: Multiple pragma(startaddress) does not result in error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 7 14:27:01 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23394

          Issue ID: 23394
           Summary: Multiple pragma(startaddress) does not result in error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dkorpel at live.nl

This came up in https://github.com/dlang/dmd/pull/14512#discussion_r985554928

No pressure in fixing this since the feature is rarely used, but:

```
void f() {}
void g() {}

pragma(startaddress, f);
pragma(startaddress, g);
```

Should raise an error.

--


More information about the Digitalmars-d-bugs mailing list