[Issue 15965] [REG 2.070] Reference to other CT-known field on struct instantiation now yields "circular reference"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 9 03:54:51 PDT 2016


Mathias Lang <mathias.lang at sociomantic.com> changed:

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

--- Comment #2 from Mathias Lang <mathias.lang at sociomantic.com> ---
> First, is the summary "[REG 2.070] ..." a mistake of REG-master (or REG-devel, etc)? 

It stopped compiling when I tried 2.071. Do you use the version of the last
working compiler, or the first broken one ? I want with the last working one,
but according to your comment it should probably be [REG 2.071]` then.

In the presented case, it would probably work, but since it's highly dependent
of the order of declaration, I don't know if it's worth supporting it. I'm
pretty sure anything achievable by mean of `offsetof` is achievable by mean of
`sizeof` + `align`.

We fixed the issue in our code, and I don't find the breakage unreasonable.
We reported the issue for documentation purpose, because the code broke. But
looks like it was already broken before anyway.
Closing as WONTFIX, feel free to reopen if you think it's worth enhancing.


More information about the Digitalmars-d-bugs mailing list