Commit graph

1118 commits

Author SHA1 Message Date
Dennis
28bc5c6e74
Fix #20763 - Inconsistent handling of type + value in typeof expressions (#20798)
* Fix #20763 - Inconsistent handling of type + value in typeof expressions

* Add supplemental error

---------

Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-29 11:26:01 +01:00
Dennis
a55dff5f28
Improve opIndex/opSlice error messages (#20791) 2025-01-28 18:44:46 +08:00
Dennis
ea9ead9cae
Improve opBinary error messages (#20789) 2025-01-28 06:23:30 +08:00
Dennis
b289b6a6dc
Refactor use of Loc/SourceLoc (#20785) 2025-01-26 14:06:14 +01:00
Dennis
cb31f45e15
Remove references to D1 opDot (#20772) 2025-01-24 12:00:29 +01:00
Dennis
72a9347165
Fix #18281 - ICE on attempt to compare deref of two functions ptr (#20768) 2025-01-24 07:32:18 +08:00
Dennis
be6a7bb529
Fix #20730 - print SymOff with unsigned offset (#20769) 2025-01-24 06:13:11 +08:00
Dennis Korpel
279f3054bf Short-circuit checkArithmeticBin when lhs is an error 2025-01-23 20:59:30 +08:00
Dennis Korpel
8358e6d33f Move AddExp type check from typeCombine to expressionSemantic 2025-01-23 20:59:30 +08:00
Dennis
096c9c1528
Make delete an identifier instead of keyword (#20745) 2025-01-21 23:33:50 +01:00
Dennis
f05ccbd0e7
Remove class allocator parsing (#20747) 2025-01-21 19:32:51 +08:00
Dennis
fc2b2271a6
Remove D1 operators from the D2 language (#20744) 2025-01-21 06:08:05 +08:00
Dennis
2a627016f6
Disallow initializing fields with themself (#20696) 2025-01-21 05:49:24 +08:00
Andrey Penechko
ec7c24bb72
Add test cases for static arrays initialization with hex string (#20738) 2025-01-19 21:13:58 +08:00
Dennis
ac9e8a5a70
Fix bypassing nothrow in debug statements (#20720)
* Fix bypassing nothrow in debug statements

* Fix debug walking null statements
2025-01-17 01:50:17 +01:00
Dennis
803db11017
Re-enable tests of temporary in condition and throwing callee (#20721) 2025-01-16 23:35:13 +01:00
Dennis Korpel
a78abc4328 Improve error locations when lexing number literals 2025-01-16 22:05:21 +01:00
Dennis
888917669c
Remove debug() / version() integers (#20713) 2025-01-16 15:20:06 +08:00
Dennis
20090aba96
Make inferred attribute failure errors more compact and consistent (#20711) 2025-01-16 01:42:05 +01:00
Dennis
3daeb3a33d
Improve diff based AUTO_UPDATE (#20703)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-15 23:25:32 +01:00
Walter Bright
10eb368c1b fix #20686 infer attributes for generated functions 2025-01-12 19:29:12 +08:00
Dennis
b237d0329c
Fix ambiguous type deduction around hex strings (#20679) 2025-01-10 23:35:51 +01:00
Walter Bright
eb8418a772
build default move constructors (#20634) 2025-01-10 11:19:29 -08:00
Dennis Korpel
8b215f8c16 Fix missing backtick in escape.d error message 2025-01-10 17:52:17 +01:00
Paul Backus
99b4a5dc76 Revert "Enable -preview=fieldwise by default"
This reverts commit 6a7bd45a8e.

PR #17495 was originally merged in an incomplete state. Since there are
non-trivial obstacles to completing it, revert the incomplete changes
instead.

See PR #20670 for more information.
2025-01-09 13:38:03 -05:00
Dennis
69664b922d
Merge pull request #20577 from thewilsonator/pointer-subtract
Make subtracting pointers of different types an error
2025-01-09 15:06:33 +01:00
Dennis Korpel
37978248a9 Fix "Casting class references to void* should be @safe" 2025-01-08 23:24:36 +01:00
Nicholas Wilson
8d2fe40f4b Fix #20330 - Make subtracting pointers of different types an error 2025-01-08 15:44:38 +08:00
Dennis
9b94878c85
Make safe error messages consistent (#20654)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-08 13:46:38 +08:00
Dennis
1bdea38933
Implement AUTO_UPDATE for multiple TEST_OUTPUT blocks (#20652) 2025-01-08 07:47:51 +08:00
Dennis
95145b4ee7
Fix -verrors=context handling of tabs (#20640) 2025-01-07 14:39:25 +08:00
Dennis Korpel
ec66babbc5 Print match level for ambiguous overloads 2025-01-05 13:28:09 +01:00
Royal Simpson Pinto
45e4a09a3e
feat(errors): enable verrors=context globally (#20576)
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2025-01-03 05:17:59 +08:00
Walter Bright
c57da0cf59
fix #20621 Comparing addresses of rvalue reference parameters not correct (#20622) 2024-12-31 17:00:03 +08:00
Nicholas Wilson
9c4694fc11
[run.d] add space between commands for failed unittest (#20628) 2024-12-31 10:48:37 +08:00
Nicholas Wilson
da1b69af37
[run.d] print failed command for failed unit tests (#20620) 2024-12-30 14:07:18 +08:00
Quirin F. Schroll
3f90de47c1
Fixes #20587 - Add align(default) (#20589) 2024-12-30 13:02:14 +08:00
Walter Bright
cc21914461
fix #20614 Add __traits(hasMoveConstructor, type) (#20615) 2024-12-28 22:02:47 -08:00
Walter Bright
1b9bc74edc
fix #20610 aliasing for fields does not work (#20611) 2024-12-27 21:38:25 -08:00
Walter Bright
2c5638e880
replacing string instructions with MOVs (#20582) 2024-12-24 10:39:26 +08:00
Walter Bright
cdc7334e44
fix issue 20562 returning __rvalue should move-construct the NRVO value (#20585) 2024-12-23 13:08:50 +08:00
Walter Bright
bf3f49ac79 optimize s=s where s is a struct 2024-12-18 16:51:23 -08:00
Walter Bright
b7a3a1942c
fix Issue 20567 returning the result of a constructor should be NRVO (#20568) 2024-12-18 00:48:52 -08:00
Walter Bright
85fe931daa
fix github issue 20754 replace a?b:b with a,b when optimized (#20575) 2024-12-17 23:59:42 -08:00
Royal Simpson Pinto
59883ab71e
feat(errors): implement verrors=simple to skip context printing (#20566)
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-12-18 11:53:37 +08:00
The Dlang Bot
059b1ab407
Merge pull request #20559 from KitsunebiGames/objc
Objective-C Improvements

Signed-off-by: Dennis <dkorpel@users.noreply.github.com>
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Dennis <dkorpel@users.noreply.github.com>
2024-12-15 22:48:39 +01:00
Walter Bright
a99a3894be
add __rvalue(expression) builtin (#17050) 2024-12-15 12:13:28 -08:00
Nicholas Wilson
13775eb2d1
Fix #18235 - Add offending member to "no size because of forward reference" error (#20557)
Co-authored-by: Nick Treleaven <ntrel002@gmail.com>
2024-12-15 18:23:36 +08:00
LunaTheFoxgirl
0845895659 Objective-C classes do not have invariants, null check directly. 2024-12-14 19:26:08 +01:00
LunaTheFoxgirl
2aa9f23110 Remove super-call in test 2024-12-14 18:35:42 +01:00