[Issue 22579] betterC errors are issued by the glue layer and hence skipped without codegen

2022-06-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22579 Walter Bright changed: What|Removed |Added Keywords||betterC CC|

[Issue 22579] betterC errors are issued by the glue layer and hence skipped without codegen

2021-12-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22579 --- Comment #6 from moonlightsenti...@disroot.org --- Reduced example: --- issue22579.d // Use auto instead of int[] to force semantic on the function body auto foo(int i) { return [i]; } int[] bar()(int i) { return [i]; } --- main.d

[Issue 22579] betterC errors are issued by the glue layer and hence skipped without codegen

2021-12-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22579 --- Comment #5 from moonlightsenti...@disroot.org --- (In reply to Andrei Alexandrescu from comment #0) > A top-level unittest that is not marked with @betterC in Phobos causes no > trouble in betterC mode. However, inside a template that's not the

[Issue 22579] betterC errors are issued by the glue layer and hence skipped without codegen

2021-12-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22579 --- Comment #4 from moonlightsenti...@disroot.org --- (In reply to Paul Backus from comment #1) > Here's a full example that reproduces the error: That reduction is inaccurate because it actually compiles both modules. It doesn't matter whether the

[Issue 22579] betterC errors are issued by the glue layer and hence skipped without codegen

2021-12-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22579 --- Comment #3 from moonlightsenti...@disroot.org --- Nothing specific to unittests in this example. The underlying issue is that -betterC checks are currently issued by the glue layer and hence skipped for declarations that are not codegened

[Issue 22579] betterC errors are issued by the glue layer and hence skipped without codegen

2021-12-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22579 moonlightsenti...@disroot.org changed: What|Removed |Added CC||moonlightsentinel@disroot.o