[Issue 19646] Initialization of globals not checked for @safe

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19646 Paul Backus changed: What|Removed |Added CC||snarwin+bugzi...@gmail.com --- Comment #4

[Issue 21664] Unsafe global initializer causes undefined behavior in @safe code

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21664 Paul Backus changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 23705] dmd: src/dmd/backend/cgcod.d:734: Assertion `sz >= 0' failed.

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23705 --- Comment #3 from Dlang Bot --- dlang/dmd pull request #14887 "merge stable" was merged into master: - e88ae0da4ddf891283d8eabc2d463ff63d06da02 by Razvan Nitu: Fix Issue 23705 - dmd: src/dmd/backend/cgcod.d:734: Assertion sz >= 0 failed

[Issue 23722] New: Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23722 Issue ID: 23722 Summary: Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code Product: D Version: D2 Hardware: x86_64

[Issue 23690] compilable/cimports2.i:1:1: error: unknown type name '__import'

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23690 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 23716] compilable/testcstuff2.c:18:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23716 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #3 from Dlang Bot ---

[Issue 23716] ImportC: Missing documentation on the asm keyword accepted as an extension

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23716 Iain Buclaw changed: What|Removed |Added Summary|compilable/testcstuff2.c:18 |ImportC: Missing |:20:

[Issue 23716] compilable/testcstuff2.c:18:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23716 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org --- Comment #4 from Iain Buclaw

[Issue 20594] [GCC ASM] Should the asm { } syntax be modernized for D2?

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20594 --- Comment #2 from Iain Buclaw --- Another alternative that may prove nicer, is the use of `arg => value` instead. This also allows for each argument/property of the GCC-style assembler statement to be optionally added. However, there is also

[Issue 23716] compilable/testcstuff2.c:18:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23716 --- Comment #2 from Iain Buclaw --- More errors: runnable/test23011.c:7:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’ 7 | extern char **myenviron asm("environ"); | ^~~

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23720 See Also|

[Issue 23721] runnable/test22513.c:18:28: error: field ‘t’ has incomplete type

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23721 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23721] New: runnable/test22513.c:18:28: error: field ‘t’ has incomplete type

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23721 Issue ID: 23721 Summary: runnable/test22513.c:18:28: error: field ‘t’ has incomplete type Product: D Version: D2 Hardware: All OS: Linux Status: NEW

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23721 See Also|

[Issue 23720] runnable/test22513.c:16:12: error: invalid use of undefined type ‘struct S’

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23720 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23719] runnable/test22071.c:22:16: error: ‘abc’ is a pointer; did you mean to use ‘->’?

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23719 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23720] New: runnable/test22513.c:16:12: error: invalid use of undefined type ‘struct S’

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23720 Issue ID: 23720 Summary: runnable/test22513.c:16:12: error: invalid use of undefined type ‘struct S’ Product: D Version: D2 Hardware: All OS: Linux

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23719 See Also|

[Issue 23719] New: runnable/test22071.c:22:16: error: ‘abc’ is a pointer; did you mean to use ‘->’?

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23719 Issue ID: 23719 Summary: runnable/test22071.c:22:16: error: ‘abc’ is a pointer; did you mean to use ‘->’? Product: D Version: D2 Hardware: All OS: Linux

[Issue 23718] runnable/initializer.c:583:10: error: cast specifies array type

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23718 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23718 See Also|

[Issue 23718] New: runnable/initializer.c:583:10: error: cast specifies array type

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23718 Issue ID: 23718 Summary: runnable/initializer.c:583:10: error: cast specifies array type Product: D Version: D2 Hardware: All OS: Linux Status: NEW

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23717 See Also|

[Issue 23717] runnable/bitfields.c:192:5: error: unknown type name ‘S’; use ‘struct’ keyword to refer to the type

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23717 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23717] New: runnable/bitfields.c:192:5: error: unknown type name ‘S’; use ‘struct’ keyword to refer to the type

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23717 Issue ID: 23717 Summary: runnable/bitfields.c:192:5: error: unknown type name ‘S’; use ‘struct’ keyword to refer to the type Product: D Version: D2 Hardware: All

[Issue 23716] compilable/testcstuff2.c:18:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23716 --- Comment #1 from Iain Buclaw --- Also: void test21934() { typedef int asmreg; register asmreg r1 asm("r1"); // asm ignored by C compiler, should be disallowed? asmreg r2 asm("r2"); register asmreg r3 asm("r3") = 3; //

[Issue 23716] New: compilable/testcstuff2.c:18:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23716 Issue ID: 23716 Summary: compilable/testcstuff2.c:18:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’ Product: D Version: D2 Hardware: All

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23716 See Also|

[Issue 23716] compilable/testcstuff2.c:18:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23716 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23676] Static foreach hangs compilation for some time

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23676 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #9 from Dlang Bot ---

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23715 See Also|

[Issue 23715] compilable/testcstuff1.c:273:23: error: function-scope 'tli' implicitly auto and declared '_Thread_local'

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23715 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23715] New: compilable/testcstuff1.c:273:23: error: function-scope 'tli' implicitly auto and declared '_Thread_local'

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23715 Issue ID: 23715 Summary: compilable/testcstuff1.c:273:23: error: function-scope 'tli' implicitly auto and declared '_Thread_local' Product: D Version: D2 Hardware: All

[Issue 23711] compilable/testcstuff1.c:63:1: error: invalid use of 'restrict'

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23711 --- Comment #2 from Iain Buclaw --- And another compilable/testcstuff1.c:278:5: error: invalid use of ‘restrict’ 278 | restrict int ri; | ^~~~ >From the same function, bundling both this and the previous together. ``` void

[Issue 23714] compilable/testcstuff1.c:213:1: error: static assertion failed: u'ab' == 0x610062

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23714 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23711] compilable/testcstuff1.c:63:1: error: invalid use of 'restrict'

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23711 --- Comment #1 from Iain Buclaw --- Another test that fails to compile. compilable/testcstuff1.c:260:5: error: invalid use of ‘restrict’ 260 | int (* const volatile restrict fp2)(void); | ^~~ ``` int (* const volatile restrict

[Issue 23714] New: compilable/testcstuff1.c:213:1: error: static assertion failed: u'ab' == 0x610062

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23714 Issue ID: 23714 Summary: compilable/testcstuff1.c:213:1: error: static assertion failed: u'ab' == 0x610062 Product: D Version: D2 Hardware: All OS: Linux

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23714 See Also|

[Issue 23713] New: compilable/testcstuff1.c:206:1: error: static assertion failed: sizeof(u'a') == 4

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23713 Issue ID: 23713 Summary: compilable/testcstuff1.c:206:1: error: static assertion failed: sizeof(u'a') == 4 Product: D Version: D2 Hardware: All OS: Linux

[Issue 23713] compilable/testcstuff1.c:206:1: error: static assertion failed: sizeof(u'a') == 4

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23713 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23713 See Also|

[Issue 23712] compilable/testcstuff1.c:98:1: error: static assertion failed: sizeof(9223372036854775808) == 8

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23712 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23712] New: compilable/testcstuff1.c:98:1: error: static assertion failed: sizeof(9223372036854775808) == 8

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23712 Issue ID: 23712 Summary: compilable/testcstuff1.c:98:1: error: static assertion failed: sizeof(9223372036854775808) == 8 Product: D Version: D2 Hardware: All OS:

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23712 See Also|

[Issue 23700] compilable/test22842.c:64:24: error: expression in static assertion is not constant

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23700 --- Comment #2 from Iain Buclaw --- Many more _Static_assert tests that fail with gcc, but pass with dmd. compilable/testcstuff1.c:113:25: error: expression in static assertion is not constant 113 | _Static_assert(f1(4, 2) == 7, "ok"); |

[Issue 23711] compilable/testcstuff1.c:63:1: error: invalid use of 'restrict'

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23711 Iain Buclaw changed: What|Removed |Added Keywords||accepts-invalid, ImportC See Also|

[Issue 23711] New: compilable/testcstuff1.c:63:1: error: invalid use of 'restrict'

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23711 Issue ID: 23711 Summary: compilable/testcstuff1.c:63:1: error: invalid use of 'restrict' Product: D Version: D2 Hardware: All OS: Linux Status: NEW

[Issue 23689] ImportC: C tests in the testsuite are not valid C

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23689 Iain Buclaw changed: What|Removed |Added Blocks||23711 See Also|

[Issue 23676] Static foreach hangs compilation for some time

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23676 Dennis changed: What|Removed |Added CC||dkor...@live.nl --- Comment #8 from Dennis ---

[Issue 23710] [REG master] Reachable code inside an 'if (false)' block no longer gets codegen

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23710 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #1 from

[Issue 23710] New: [REG master] Reachable code inside an 'if (false)' block no longer gets codegen

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23710 Issue ID: 23710 Summary: [REG master] Reachable code inside an 'if (false)' block no longer gets codegen Product: D Version: D2 Hardware: All OS: All

[Issue 23709] Cannot use synchronized on shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23709 --- Comment #5 from Atila Neves --- This is actually two bugs: creating a shared instance isn't possible with new, but the bug description is still accurate since this doesn't compile: class Class {} void main() { shared Class c;

[Issue 23709] Cannot use synchronized on shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23709 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #4 from Dlang Bot ---

[Issue 23709] Cannot use synchronized on shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23709 RazvanN changed: What|Removed |Added Severity|major |regression --- Comment #3 from RazvanN --- This

[Issue 23709] Cannot use synchronized on shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23709 --- Comment #2 from Atila Neves --- Oh, wow. I assumed the problem was with `synchronized` because the problem being with `new shared Class` was just too fundamental to even consider! --

[Issue 23709] Cannot use synchronized on shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23709 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #1 from

[Issue 23708] Cannot return shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23708 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot ---

[Issue 12786] Compiler warnings in DMD frontend code

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12786 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 23706] Do not escape POSIX shell parameters unless necessary

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23706 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 23709] Cannot use synchronized on shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23709 Atila Neves changed: What|Removed |Added Keywords||rejects-valid --

[Issue 23709] New: Cannot use synchronized on shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23709 Issue ID: 23709 Summary: Cannot use synchronized on shared class with -preview=nosharedaccess Product: D Version: D2 Hardware: x86_64 OS: Linux

[Issue 23708] Cannot return shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23708 Atila Neves changed: What|Removed |Added Keywords||rejects-valid --

[Issue 23708] New: Cannot return shared class with -preview=nosharedaccess

2023-02-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23708 Issue ID: 23708 Summary: Cannot return shared class with -preview=nosharedaccess Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW