Commit graph

1078 commits

Author SHA1 Message Date
Dennis
c0c1b0ab12
Use __FILE__, __LINE__ for templated tracegc hooks (#20882) 2025-02-17 11:53:16 +01:00
Dennis Korpel
efd10b140c Print function bodies instead of __lambda in error messages 2025-02-17 00:41:33 +01:00
Dennis
961862c455
Deprecate typesafe variadic class arguments (#20673) 2025-02-16 21:35:11 +01:00
Dennis
9f33f031f0
Rephrase "no identifier for declarator" parse error (#20872) 2025-02-16 08:09:43 +08:00
Dennis
4b57724c91
Improve parser errors for statements at global scope (#20871) 2025-02-15 23:50:34 +01:00
Dennis
f37cfdf837
Fix #20831 - Mangle conflict after ImportC statement expression gets expanded from macro (#20854) 2025-02-12 20:44:16 +08:00
Dennis
ffbad272b6
Remove const ref from Loc parameters (#20846) 2025-02-12 17:23:25 +08:00
Steven Schveighoffer
935d72a79e Remove unnecessary NoPointersBitmapPayload template. 2025-02-08 03:52:29 +01:00
Dennis
d29e3eca45
Remove reference to _d_arrayassign in errors (#20808) 2025-01-31 00:08:38 +01:00
Dennis
0ecefd78ef
Improve error messages for missing opCmp / opEquals (#20806) 2025-01-30 23:31:36 +01:00
Dennis
f4558fe0fd
Move toChars overrides to hdrgen.d (#20804) 2025-01-30 23:25:37 +01:00
Dennis
bfbac11136
Don't expose internal names in errors (#20803) 2025-01-30 21:49:50 +08:00
Dennis
06d0cfe2ba
Improve error messages for opUnary (#20801) 2025-01-30 19:44:05 +08:00
Dennis
06e0096aca
Improve opOpAssign error messages (#20800) 2025-01-30 15:04:17 +08:00
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
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
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
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