Thread overview
[Issue 21492] betterC: TypeInfo is generated for code guarded by if(__ctfe)
Dec 17, 2022
Iain Buclaw
Jan 08, 2023
Walter Bright
Jan 15, 2023
Walter Bright
Jan 16, 2023
Dlang Bot
Jan 17, 2023
Dlang Bot
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21492

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
January 07, 2023
https://issues.dlang.org/show_bug.cgi?id=21492

--- Comment #1 from dave287091@gmail.com ---
The error message has been change to “uses the GC”, but still fails. Dead branches like this should be pruned so that more things will work with betterC.

--
January 08, 2023
https://issues.dlang.org/show_bug.cgi?id=21492

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=21482

--
January 15, 2023
https://issues.dlang.org/show_bug.cgi?id=21492

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
What D does is generate the code, then prune away all the false code blocks. Looks like ldc does it is better.

--
January 16, 2023
https://issues.dlang.org/show_bug.cgi?id=21492

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #14830 "fix Issue 21492 - betterC: TypeInfo is generated for code guarded by …" fixing this issue:

- fix Issue 21492 - betterC: TypeInfo is generated for code guarded by
if(__ctfe)

https://github.com/dlang/dmd/pull/14830

--
January 17, 2023
https://issues.dlang.org/show_bug.cgi?id=21492

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14830 "fix Issue 21492 - betterC: TypeInfo is generated for code guarded by …" was merged into master:

- f90b298ca578c00104b0121ea2ecfacdd76f9827 by Walter Bright:
  fix Issue 21492 - betterC: TypeInfo is generated for code guarded by
if(__ctfe)

https://github.com/dlang/dmd/pull/14830

--