Bug 23267 – statically evaluated code in betterC mask static assertion message with an unrelated error

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-07-22T09:53:56Z
Last change time
2024-12-13T19:23:58Z
Keywords
betterC
Assigned to
No Owner
Creator
basile-z
Moved to GitHub: dmd#20134 →

Comments

Comment #0 by b2.temp — 2022-07-22T09:53:56Z
compiles this with -betterC ``` import std.conv : to; static assert(0, to!string(0)); extern(C) int main() { return 0; } ``` to obtain > Error: `TypeInfo` cannot be used with -betterC this is because the code for to!string is incompatible with -betterC but in this case it is only statically evaluated.
Comment #1 by robert.schadek — 2024-12-13T19:23:58Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20134 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB