Abul Hossain Khan
dafb58bc77
Fix: Prevent ICE on final switch forward referencing its enum ( #21001 )
...
* Fix: Prevent ICE on final switch forward referencing its enum
* more simpler approach
* moved the enum member analysis
* Move enum number analysis to sementic2
* WhiteSpace Remove
* Remove Redundant Code in enumsem
2025-03-20 16:43:37 +01:00
Walter Bright
49a7c10bdf
arguments swapped for loadFromEA() ( #21040 )
2025-03-20 16:07:57 +08:00
Walter Bright
996de2ad3a
wrong register mask for cssave() ( #21037 )
2025-03-20 16:03:47 +08:00
Nayaab Zameer
cfefcdd657
Remove Unused RTLSYMs from DMD ( #21032 )
...
* Remove RTLSYM for Translation PR #15819 : Removed NEWARRAYMITX, NEWARRAYMITX, TRACENEWARRAYMTX and TRACENEWARRAYMITX
* Remove RTLSYM for Translation PR #15299 : Removed NEWARRAYT, NEWARRAYIT, TRACENEWARRAYT and TRACENEWARRAYIT
* Remove RTLSYM for Translation PR #14837 : Removed NEWCLASS, TRACENEWCLASS
* Remove RTLSYM for Translation PR #14664 : Removed NEWITEMT, NEWITEMIT, TRACENEWITEMT and TRACENEWITEMIT
* Remove RTLSYM for Translation PR #14550 : Removed ARRAYCATNTX, ARRAYCATT, TRACEARRAYCATNTX and TRACEARRAYCATT
* Remove RTLSYM for Translation PR #14382 : Removed ARRAYSETASSIGN
* Remove RTLSYM for Translation PR #14310 : Removed ARRAYASSIGN
* Remove RTLSYM for Translation PR #13495 : Removed ARRAYAPPENDT, ARRAYAPPENDCTX, TRACEARRAYAPPENDT and TRACEARRAYAPPENDCTX
2025-03-19 14:03:09 +08:00
Dennis
62a48a55e3
Move ImportC enum semantic to importc.d ( #21027 )
...
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-03-18 21:54:40 +08:00
Shivang Shukla
a7e2b2e17b
Refactor: Remove Unused Hooks in dinterpret.d ( #21022 )
...
- Removed references to _d_arrayappendcTX, _d_newThrowable, and _d_arrayappendT.
- Ensured test cases pass after deletion.
- Left _d_arrayctor and _d_arraysetctor untouched for future semantic phase changes.
2025-03-18 16:39:32 +08:00
Walter Bright
5caf886afb
flags not set by complement instruction ( #21026 )
2025-03-18 16:06:37 +08:00
Abul Hossain Khan
8663b6dcdc
Fix : Improved error message on override mismatch ( #21023 )
2025-03-18 08:28:57 +08:00
Walter Bright
49198f2983
overlooked necessary sign extension ( #21021 )
2025-03-18 07:15:32 +08:00
Nayaab Zameer
a4cbc08f5b
Remove unused RTLSYM.NEWARRAYMTX ( #21011 )
2025-03-17 17:04:02 +08:00
Walter Bright
0312e82726
it is IFL1 not IFL2 ( #21010 )
2025-03-16 23:43:33 -07:00
Paul Backus
7c95446800
Don't parse lambda as UDA without parentheses ( #21009 )
...
This brings the compiler's behavior in line with the language spec.
Fixes dlang/dlang.org#4137
2025-03-17 08:31:39 +08:00
Walter Bright
726c50e5bd
load sign extended bytes ( #21004 )
...
* carith() function in exe1.c tests
* load sign extended bytes
2025-03-16 09:33:19 -07:00
Abul Hossain Khan
cf2674f689
Fix #20075 - Improve error message for immutable constructor type mismatch ( #20990 )
2025-03-16 08:00:27 +08:00
Dennis
92f9f997ba
Improve Fix #20318 Compiler should explain why implicit conversion to mutable fails ( #21003 )
2025-03-16 07:57:51 +08:00
Walter Bright
7d3293c45d
carith and more branch logic ( #21002 )
...
* carith() function in exe1.c tests
* more branch logic
2025-03-15 15:33:30 -07:00
Walter Bright
142d509af2
get branches to block working ( #20996 )
...
* carith() function in exe1.c tests
* get branches to blocks working
2025-03-15 16:27:52 +08:00
Dennis
2408ac30e9
Reset global Loc table in initDMD ( #20995 )
2025-03-15 16:23:37 +08:00
Abul Hossain Khan
6476cebd44
Fix #20318 Compiler should explain why implicit conversion to mutable fails ( #20984 )
2025-03-14 19:09:40 +08:00
Walter Bright
49dc576b9d
more common subexpression implementation ( #20988 )
2025-03-14 15:15:48 +08:00
Walter Bright
1e75778d19
progress on dealing with common subexpressions ( #20987 )
2025-03-13 22:38:53 -07:00
Abul Hossain Khan
35f1146a1b
Fixes the invariant not called on extern(C++) classes issue ( #20981 )
2025-03-13 18:36:45 +08:00
Nicholas Wilson
c5ba78dc34
fixup mtype.h
for #20946 ( #20971 )
2025-03-13 07:22:15 +08:00
Walter Bright
d09d7689b6
fix tyToExtend() ( #20979 )
2025-03-12 09:02:00 -07:00
Matthew Qiu
aafe4f954b
Extracted Condition.include to visitor in expressionsem ( #20977 )
2025-03-12 07:33:53 +08:00
Manu Evans
6c04f52a39
Accept __rvalue attribute on ref functions; which will force the result to be treated as __rvalue. ( #20946 )
...
This is essential to implement `move`, `forward`, etc.
2025-03-10 04:06:29 -07:00
Walter Bright
4ad88c4b11
successfully run exe1.c elemi() test ( #20969 )
2025-03-09 16:39:25 +08:00
Walter Bright
d1f5972b54
getting first two tests in exe1.c to run ( #20968 )
2025-03-08 22:49:35 -08:00
Walter Bright
8812065e8b
fix #20960 i = i && 1; fails at runtime ( #20961 )
2025-03-07 11:42:12 +08:00
Walter Bright
4c4b9aef4d
detab source code ( #20962 )
2025-03-07 10:31:19 +08:00
Walter Bright
42619075eb
add exe1.c to test suite ( #20957 )
2025-03-06 12:25:59 -08:00
Walter Bright
b02be83f5c
fix 64 bit Arm relocations ( #20951 )
2025-03-06 12:24:21 -08:00
Dennis
4661fec6b7
Update copyright years to 2025 ( #20958 )
2025-03-06 18:17:32 +08:00
Matthew Qiu
325ef115e8
Move ClassDeclaration.vtblSymbol to dsymbolsem ( #20956 )
2025-03-06 16:02:40 +08:00
Matthew Qiu
57e7419c4d
Moved StaticForeach.lowerArrayAggregate to expressionsem ( #20955 )
2025-03-06 15:59:41 +08:00
Dennis Korpel
5375db4f76
Merge branch 'stable' into merge-stable
2025-03-05 11:03:30 +01:00
Matthew Qiu
6df52b0ef2
Move ClassDeclaration.isFuncHidden to dsymbolsem ( #20945 )
2025-03-05 16:18:53 +08:00
Matthew Qiu
bc4c7e4452
Move Dsymbol.hasStaticCtorOrDtor to dsymbolsem ( #20943 )
2025-03-05 06:23:33 +08:00
Walter Bright
ddc7eaf570
another pass over movParams() ( #20949 )
2025-03-04 18:39:08 +08:00
Walter Bright
eb95108dfb
2nd go at funccall() for AArch64 ( #20948 )
2025-03-04 17:06:41 +08:00
Matthew Qiu
58d3b59dc5
Moved Staticforeach.lowerNonArrayAggregate and Staticforeach.prepare to expressionsem ( #20944 )
2025-03-04 17:05:02 +08:00
Walter Bright
5cd254f9e0
go over cdfunc() for AArch64 ( #20941 )
2025-03-03 10:51:34 -08:00
Manu Evans
37469bfae8
Merge pull request #17057 from WalterBright/placementNew
...
add Placement New
2025-03-03 19:50:22 +10:00
Walter Bright
ac045cf7a4
rewrite fixresult() for AArch64 ( #20940 )
2025-03-03 00:13:56 -08:00
Walter Bright
73158d8a78
add Placement New
2025-03-03 16:23:02 +10:00
Walter Bright
a9666925cc
tidy up cdloglog() ( #20939 )
2025-03-02 21:45:27 -08:00
Walter Bright
cdf4f5b072
implement floating point negation ( #20934 )
2025-03-02 15:52:40 -08:00
Walter Bright
ab57e77c03
recognize (e ? e : f) ( #20935 )
2025-03-02 11:03:44 -08:00
Walter Bright
6ee6720516
Cleanup and marking with TODO AArch64 ( #20933 )
2025-03-01 22:48:26 -08:00
Dennis
978b108b1b
Remove cast(STC) from TypeTag.semantic ( #20931 )
2025-03-01 00:44:56 +01:00