Commit graph

10 commits

Author SHA1 Message Date
drpriver
a0bf0f368a
ImportC: allow _Alignof expression (#21181)
Resolves https://github.com/dlang/dmd/issues/20434

Allowing this gnu/clang extension actually removes lines of code as
we can unify the parsing and semantics of `_Alignof` and `sizeof`
and have the normal D machinery handle the difference later.
2025-04-10 07:20:50 +08:00
drpriver
ca2f90d1fc
ImportC: can't access members in static array (#21185)
Fixes https://github.com/dlang/dmd/issues/20472

Arrays in C implicitly convert to a pointer to their first member,
so do the implicit conversion when using them in an arrow member lookup.
2025-04-09 17:58:14 +08:00
Walter Bright
434d538daf
fix Issue 23713 - compilable/testcstuff1.c:206:1: error: static assertion failed: sizeof(u'a') == 4 (#15903) 2023-12-14 12:09:06 +02:00
Walter Bright
faa773d627
fix Issue 23714 - compilable/testcstuff1.c:213:1: error: static assertion failed: u'ab' == 0x610062 (#15878) 2023-12-04 22:12:13 -08:00
Walter Bright
5cd6f80d06
fix Issue 23715 - ImportC: No rejection of _Thread_local variables declared at function scope without 'static' as per C11 6.2.4-5 (#15094) 2023-04-10 16:53:38 -07:00
Walter Bright
d98f586771
ImportC: accept __declspec(thread) and __declspec(naked) (#15045) 2023-03-29 10:43:02 +03:00
Temtaime
040cf660f3
Add tests 2023-03-25 21:05:19 +03:00
Walter Bright
39c71c5e3d fix Issue 23711 - compilable/testcstuff1.c:63:1: error: invalid use of restrict 2023-02-22 01:06:03 +01:00
Walter Bright
5f2761d146
fix Issue 23566 - ImportC: __PRETTY_FUNCTION__ is not defined (#14712) 2022-12-19 10:47:56 +02:00
Iain Buclaw
6374bb87b7 Move dmd files into compiler/ 2022-07-09 18:53:07 +02:00
Renamed from test/compilable/testcstuff1.c (Browse further)