[Issue 7184] parse error on *(x)++

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 3 08:01:41 UTC 2017


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

Simen Kjaeraas <simen.kjaras at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |spec
             Status|RESOLVED                    |REOPENED
                 CC|                            |simen.kjaras at gmail.com
         Resolution|INVALID                     |---

--- Comment #3 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
(In reply to RazvanN from comment #1)
> The behavior is according to the spec, so I will close this as invalid. 

It's perfectly possible for the spec to be in error (there's even the spec
keyword in Bugzilla). In this case, the code looks perfectly sensible for
someone who doesn't know the spec in detail, and getting a compiler error like
this is not expected.

Could the spec in this case be amended to allow the example code to compile,
without breaking code elsewhere? I don't know. If you know it's impossible,
please explain why, and close this bug again.

--


More information about the Digitalmars-d-bugs mailing list