Thread overview
[Issue 24639] ImportC: defines of negative constants not detected for enum conversion
Aug 17
Dlang Bot
Aug 17
Dlang Bot
June 30
https://issues.dlang.org/show_bug.cgi?id=24639

Steven Schveighoffer <schveiguy@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ImportC

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@tim-dlang created dlang/dmd pull request #16789 "Fix bugzilla 24639 - ImportC: defines of negative constants not detec…" fixing this issue:

- 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

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

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

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

--- Comment #2 from Dlang Bot <dlang-bot@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

--