Commit graph

1146 commits

Author SHA1 Message Date
wolframw
825826dd01
Fix Issue 13123 - Disallow throwing contracts for nothrow functions 2022-08-30 22:22:59 +02:00
mhh
7de9e0bb06 Fix Issue 23308 - void* and T* not merged properly 2022-08-30 01:41:28 +02:00
Geod24
cdf48260d8 Trivial: Merge two similar tests around default arguments 2022-08-29 08:25:10 +02:00
Adela Vais
817610b16d
Issue 12652 - Non-constant hash initializers should have a special-case diagnostic (#11598)
Issue 12652 - Non-constant hash initializers should have a special-case diagnostic

Signed-off-by: Dennis <dkorpel@users.noreply.github.com>
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2022-08-24 14:13:51 +02:00
Dennis Korpel
f3d3d041f1 Refactor global state in escape.d 2022-08-19 14:08:49 +02:00
Dennis Korpel
f81262f420 Fix 23295 - explain why scope inference failed 2022-08-19 14:08:49 +02:00
Dennis
af7053839f
Fix 23073 - scope inference from pure doesn't consider self-assignment (#14217)
* testing fix for 23073

* Fix 23073 - scope inference from pure doesn't consider self-assignment

Co-authored-by: Walter Bright <walter@walterbright.com>
2022-08-17 12:50:22 -07:00
Razvan Nitu
ab2a1d1994
Fix Issue 20365 - Copy constructor not invoked on static arrays of structs but the postblit works (#14372) 2022-08-17 16:24:26 +03:00
Dennis
6040e63775
Add test for scope inference with _d_arrayassign_l (#14370) 2022-08-16 13:07:09 +03:00
Walter Bright
d352db7be8
fix Issue 20809 - return statement might access memory from destructed temporary (#14358) 2022-08-15 14:02:43 +03:00
Dennis Korpel
4a18b03244 Issue 23226 - allow access to non-shared this 2022-08-14 14:42:53 +00:00
Walter Bright
51b75544da improve error messages for missing semicolons 2022-08-12 19:17:30 +00:00
Walter Bright
84fb2c410d
fix Issue 21197 - Wrong lifetime inference with DIP1000 in dmd 2.093.0 (#14360) 2022-08-12 14:05:41 +03:00
RazvanN7
22d5166dca Fix Issue 15525 - SEGV running semantic analysis on non-root decl that has errors 2022-08-11 09:30:18 +00:00
Walter Bright
2265d6cb35
extend () error msgs for if conditions to other statement conditions (#14353) 2022-08-07 22:23:44 -07:00
The Dlang Bot
114deec135
Merge pull request #14347 from ibuclaw/dprogress
Remove dprogress state variable for semantic1

Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2022-08-03 00:24:26 +00:00
Iain Buclaw
1e40c17b2a dmd.dmodule: Remove dprogress state variable for semantic1 2022-08-02 22:58:16 +02:00
Teodor Dutu
c83dff2e1b
Translate _d_arrayassign{,_l,_r} to templates (#14310)
- Implement template `_d_arrayassign{_l,_r}`
- Lower array asignment expressions to the above templates
- Remove old lowering from e2ir.d
- Remove the old `_d_arrayassign{,_l,_r}` hooks
- Merge the usage of `_d_arrayassign` with that of `_d_arrayassign_l`

Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>
2022-08-02 11:11:40 +03:00
Walter Bright
dbaa4abf3f
fix Issue 17764 - [scope][DIP1000] Escape checker defeated by composition transformations (#14337) 2022-07-31 16:06:47 +08:00
Boris Carvajal
10d62fc382 Optimize AliasAssign tuple building 2022-07-28 03:38:45 +00:00
Nick Treleaven
cac3f6b299
Fix Issue 22706 - Bad error on explicit instantiation of function template with auto ref parameter (#14334) 2022-07-28 11:37:09 +08:00
Max Haughton
4b4975f51d
Fix Issue 23241 - Consider types with no symbol (e.g. int) to have no… (#14298)
* Fix Issue 23241 - Consider types with no symbol (e.g. int) to have no attributes

* Update compiler/src/dmd/traits.d

Co-authored-by: Iain Buclaw <ibuclaw@gdcproject.org>

Co-authored-by: Iain Buclaw <ibuclaw@gdcproject.org>
2022-07-27 10:58:28 +03:00
Dennis
d7772a2369
Fix 20823 - un-@safe code fails with dip1000 (#14331) 2022-07-26 10:57:20 +03:00
Max Haughton
0f2c2e8b60
Fix Issue 23271 - Mark lowered DeclExps in array appends as exptemp (#14328) 2022-07-26 09:38:10 +03:00
Dennis
5843effb01
Deprecate version/debug integers (#14330) 2022-07-26 09:37:30 +03:00
Dennis
b9ee3611b9
Fix 23022 - typesafe variadic parameter should not infer return (#14327)
* Refactor `isTypesafeVariadicParameter`

* Fix 23022 - typesafe variadic parameter should not infer return
2022-07-25 23:36:46 +02:00
Nick Treleaven
418230d944
Make new AA allocate the associative array Impl (#14257)
* Make `new` on an associative array allocate the AA Impl

Fixes https://issues.dlang.org/show_bug.cgi?id=10535.
2022-07-25 22:13:22 +08:00
Dennis Korpel
372f0c007c Fix issue 19178 - Static initialization of 2d static arrays in structs 2022-07-25 13:27:22 +00:00
Dennis
e7fddeac50
Fix 16701 - Remove Restriction of "package.d" Source File Module Forced to All Lowercase (#14260) 2022-07-25 15:01:50 +03:00
Walter Bright
2709315a30 fix Issue 23235 - [DIP1000] typesafe variadic parameters should automatically be scope 2022-07-24 13:00:32 +00:00
Walter Bright
999182990d
fix Issue 23262 - typesafe variadic function parameter cannot infer return (#14320) 2022-07-23 09:39:37 -07:00
Walter Bright
41a435d65e
fix Issue 23112 - code passes @nogc, allocates anyway (#14183) 2022-07-21 17:55:13 -07:00
Razvan Nitu
e2b4fb6d8a
Add test for issue 21406 (#14318) 2022-07-20 15:06:00 +03:00
Walter Bright
40b932a64d
fix Issue 23256 - must supply -mscrtlib manually when compiling for Windows (#14312) 2022-07-20 12:14:10 +03:00
Iain Buclaw
18127372f3 fix Issue 23251 - Deprecation: format specifier "%[a-z]" is invalid 2022-07-20 04:48:39 +02:00
Iain Buclaw
172597ea2f fix Issue 23249 - Deprecation: argument &p for format specification "%m" must be char*, not char** 2022-07-19 17:30:07 +00:00
Razvan Nitu
d20b7c9870
Fix Issue 22390 - Compiler crash when iterating empty array of bottom types (#14294) 2022-07-15 02:31:56 -07:00
The Dlang Bot
0e8e40fbd0
Merge pull request #14302 from ibuclaw/issue23247
fix Issue 23247 - Deprecation: argument 0.0L for format specification "%La" must be double, not real

Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Iain Buclaw <ibuclaw@users.noreply.github.com>
2022-07-14 16:07:04 +00:00
Dennis
5da25c92c8
Fix 23236 - can't initialize a @mustuse member in constructor (#14303) 2022-07-14 18:32:43 +03:00
Iain Buclaw
34c520611c fix Issue 23247 - Deprecation: argument 0.0L for format specification "%La" must be double, not real
As we are no longer using the GNU/C89 extensions of scanf(), remove all
GNU_a handling, this fixes the regression in parsing "%La".
2022-07-14 13:22:40 +02:00
Iain Buclaw
2e40bf2fe2 fix Issue 21432 - [CTFE] Cannot declare enum array in function scope 2022-07-12 14:17:19 +00:00
Dennis Korpel
3805e2973a Cover more errors in setUnsafe() 2022-07-12 13:33:06 +00:00
Walter Bright
a0f6f845ec fix Issue 23143 - ImportC: forward enum declarations need to be supported 2022-07-12 00:06:15 +00:00
Geod24
a2d2c4b31e Do not generate detailed candidates / constraint error msg in speculative contexts
Unless the error is actually going to be printed.
2022-07-11 19:20:12 +00:00
Iain Buclaw
09d04945bd Fix build script paths to work with new merged repository structure
Co-Authored-By: Geod24 <pro.mathias.lang@gmail.com>
Co-Authored-By: Martin Kinkelin <noone@nowhere.com>
Co-Authored-By: Vladimir Panteleev <git@cy.md>
2022-07-09 23:49:27 +02:00
Iain Buclaw
6374bb87b7 Move dmd files into compiler/ 2022-07-09 18:53:07 +02:00