Commit graph

9 commits

Author SHA1 Message Date
Iain Buclaw
582bf08cb0 Fix Bugzilla 22556 - Invalid GOT load reloc with -O on MacOS 2024-02-23 12:55:02 +08:00
Tim Schendekehl
a4d6972c08 Fixes issues 20339, 24292: Calculate isPOD without information from semantic run
Issue 20339: isPOD returns true if sizeof is accessed inside struct declaration
Issue 24292: Struct with destructor wrongly returned in register

Function StructDeclaration.isPOD can be called before the semantic run
for the struct is finished. It then uses incomplete information about
destructors, postblits and copy constructors. The result of isPOD is
cached, so later calls will also return the wrong result.

This commit changes isPOD, so it uses variables, which are already
filled before the semantic run.
2023-12-21 23:20:11 +01:00
Iain Buclaw
a2157f073c Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-03-01 18:01:11 +00:00
Martin Kinkelin
5bb19c7b4c
Fix runnable_cxx/test22898.d on macOS-arm64 (#14918)
Apple diverges wrt. `char` signedness:
https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Handle-data-types-and-data-alignment-properly
2023-02-27 11:07:59 +02:00
Walter Bright
9ca5f89979
fix Issue 23195 - Win64 function ABI bug for small non-POD arguments (#14651) 2023-02-09 09:39:00 +02:00
Walter Bright
74e40179b5
fix Issue 23145 - Stack allocation of scope new variables defeats @safe (#14175) 2023-02-08 23:29:07 -08:00
Iain Buclaw
384ebf5a6f ci: Version out C++ test that doesn't work with DMD 2023-01-29 23:45:13 +01:00
Iain Buclaw
cab51f946a runnable_cxx: Remove new_allocator test from cppa.d 2023-01-29 18:30:39 +01:00
Iain Buclaw
6374bb87b7 Move dmd files into compiler/ 2022-07-09 18:53:07 +02:00