[Issue 15478] cases of missed CTFE evaluation when defining arrays dimensions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 27 15:03:26 UTC 2019


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

ag0aep6g <ag0aep6g at gmail.com> changed:

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

--- Comment #9 from ag0aep6g <ag0aep6g at gmail.com> ---
(In reply to Basile-z from comment #8)
> https://www.youtube.com/watch?v=bLHL75H_VEM

Title and content of that: "You're dereferencing a null pointer!"

I realize that you're most likely just trying to insult me with that video.

But if you think there would be a null dereference in the original test case,
you're mistaken. `foo` is a valid instance of `Foo`. `foo.bug` is a valid call.
Remember that the code works as expected when the call is written as
`foo.bug()`.

I'm reopening this again. If you close it again, please explain more
elaborately and clearly how the original test case is invalid (preferably
without external links). And please explain how it makes sense that it fails
with `foo.bug` when it works with `foo.bug()`.

--


More information about the Digitalmars-d-bugs mailing list