Nick Treleaven
e896b5c98d
Fix hidden base constructor supplemental message ( #21069 )
...
Fixes #21068 .
Also say base class *constructor* in supplemental message.
2025-03-24 05:47:29 +08:00
Dennis
0ae065db22
Fix #20901 : can escape stack pointer through indexed array literal ( #21063 )
2025-03-23 08:35:43 +08:00
Dennis
53024b9fc5
Don't raise "cannot return non-void" on Terror ( #21028 )
2025-03-23 07:40:57 +08:00
Dennis
7fb4d613af
Use errorSupplemental for long errors with 2 sentences ( #21060 )
2025-03-23 06:03:20 +08:00
Dennis
31bfe613b0
Require adjacent auto ref return as well ( #21061 )
2025-03-23 05:59:00 +08:00
Dennis
8a96c4745c
Fix #21054 - No location for array literal sliced from init symbol ( #21055 )
2025-03-22 16:26:49 +08:00
Dennis
dce0ebac9b
Fix #21052 - Missing @nogc check for enum variable initialization ( #21053 )
2025-03-22 07:40:34 +08:00
Dennis
d5db322fce
Merge stable ( #21048 )
...
* bump VERSION to v2.110.0
* purge changelog
* bump VERSION to v2.111.0-beta.1
* 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.
* memoryerror.d: Fix AnySupported version condition (#20983 )
* Fix #20982 - wrong line number in iasmgcc (#20993 )
* Move genCfunc to cxxfrontend (#20992 )
* druntime: Fix compilation of rt.cover on Android (#21015 )
* Expose SourceLoc to C++ interface (#20980 )
* [stable] C++ header fixes for declaration, expression, and typinf (#21016 )
Seen either from compilation errors or missing symbols at link time.
* C++ headers: Add 3 Declaration bitfield setters/getters required by LDC
* druntime: Add module declaration to rt.invariant, to prevent conflicts with user-provided invariant.d (#21017 )
* Fix #21020 - Indexing a *cast* AA yields no lvalue anymore (#21029 )
* Add C++23 to CppStdRevision enum (#21043 )
* Improve UFCS/property error message (#21046 )
---------
Co-authored-by: Manu Evans <turkeyman@gmail.com>
Co-authored-by: Martin Kinkelin <kinke@users.noreply.github.com>
Co-authored-by: Iain Buclaw <ibuclaw@gdcproject.org>
Co-authored-by: Martin Kinkelin <noone@nowhere.com>
2025-03-21 15:48:21 +01:00
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
Abul Hossain Khan
8663b6dcdc
Fix : Improved error message on override mismatch ( #21023 )
2025-03-18 08:28:57 +08: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
Abul Hossain Khan
cf2674f689
Fix #20075 - Improve error message for immutable constructor type mismatch ( #20990 )
2025-03-16 08:00:27 +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
Dennis Korpel
5375db4f76
Merge branch 'stable' into merge-stable
2025-03-05 11:03:30 +01:00
Walter Bright
73158d8a78
add Placement New
2025-03-03 16:23:02 +10:00
Dennis
2c304a4377
Fix #20929 - #line directives mess up -verrors=context ( #20930 )
2025-02-28 23:47:26 +01:00
Dennis
54a142412c
Improve error for failing opDispatch instantiation ( #20902 )
2025-02-20 10:40:10 +01:00
Dennis
0e5c41f799
Escape backticks in error messages ( #20893 )
2025-02-19 07:06:47 +08:00
Dennis
e082ce247a
Expand toErrMsg
to other types ( #20896 )
2025-02-19 06:39:32 +08:00
Elias Batek
f68ca2cbe0
Fix #20888 - Compiler spits out implicit conversion technobabble when a return statement doesn't match the return type of a function ( #20890 )
2025-02-18 16:55:56 +08:00
Dennis Korpel
b5e0bee399
Fix fail_compilation/retscope TEST_OUTPUT blocks
2025-02-17 23:29:05 +01:00
Dennis Korpel
efd10b140c
Print function bodies instead of __lambda in error messages
2025-02-17 00:41:33 +01:00
Dennis Korpel
eb083c06d9
Fix #20859 - ICE: class with __vtbl field name causes segfault in Scope::inCfile
2025-02-16 23:45:36 +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
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
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
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 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
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
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