[Issue 24639] ImportC: defines of negative constants not detected for enum conversion

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 17 14:14:11 UTC 2024


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #16789 "Fix bugzilla 24639 - ImportC: defines of
negative constants not detec…" was merged into master:

- cf3bdf684c0fd2fede464af7e64496b6bad48709 by Tim Schendekehl:
  Fix bugzilla 24639 - ImportC: defines of negative constants not detected for
enum conversion

  Negative expressions inside parens are already supported. This adds
  support for defines with negative numbers without parens, but not more
  complex expressions. Defines for negative numbers are often used as
  error codes in C.

https://github.com/dlang/dmd/pull/16789

--


More information about the Digitalmars-d-bugs mailing list