[Issue 24520] [REG] C-style casts are now accepted (sometimes)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 24 11:58:35 UTC 2024


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|accepts-invalid             |
                 CC|                            |dkorpel at live.nl

--- Comment #4 from Dennis <dkorpel at live.nl> ---
> it is helpful to have a way to track breaking changes or additions like these in changelog

It is listed in the changelog of 2.105:

> DMD Compiler bug fixes
> (...)
> 29. Bugzilla 24025: Expressions contained in parentheses should not be assumed to be C casts

It doesn't have a spec change because the grammar already allowed calling a
parenthesized expression. It's only an implementation bug that it was
considered a C-style cast. While breaking changes warrant an explicit changelog
entry, fixes for rejects-valid bugs usually only require a bugzilla issue to be
closed. Is that something you want to see changed?

--


More information about the Digitalmars-d-bugs mailing list