www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23394] New: Multiple pragma(startaddress) does not result in

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 puremagic.com
          Reporter: dkorpel 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.

--
Oct 07 2022