Dennis Korpel
e2f2adc04f
Fix 24281 - Segfault with missing field after named argument
2023-12-17 12:51:03 +08:00
Walter Bright
172f2fc6c1
fix Issue 23629 - importC: Need to support code coverage analysis ( #15913 )
2023-12-16 13:11:35 -08:00
Martin Kinkelin
c34750a574
Windows: Don't apply OMF-specific 16 MB static data limit to 32-bit COFF
2023-12-16 07:28:57 +01:00
Martin Kinkelin
f3ad118c61
Azure CI: Migrate from legacy MODEL=32mscoff to MODEL=32
...
Incl. fixing up the d_do_test.d tool to work properly with MODEL=32
on Windows.
And somewhat improve the documentation of MODEL=32omf, nowadays used
for the 32-bit OMF toolchain.
2023-12-16 03:11:51 +01:00
RazvanN7
aa056db4a6
Move dmd.mtype.Type.covariant to dmd.typesem
2023-12-15 12:32:56 +01:00
The Dlang Bot
f1bdb4d18a
Merge pull request #15876 from kinke/test_rm_makefiles
...
Remove deprecated compiler Makefiles
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2023-12-15 01:34:18 +01:00
Walter Bright
434d538daf
fix Issue 23713 - compilable/testcstuff1.c:206:1: error: static assertion failed: sizeof(u'a') == 4 ( #15903 )
2023-12-14 12:09:06 +02:00
Walter Bright
9981cfddda
fix Issue 24276 - ImportC: typedef aliases not emitted correctly in .di files
2023-12-12 09:36:17 +01:00
Dennis
603be63f97
Merge pull request #15898 from WalterBright/fix24274
...
fix Issue 24274 - [REG master] ImportC: unrecognized C initializer wi…
2023-12-11 15:46:29 +01:00
Walter Bright
8141f66dce
fix Issue 24274 - [REG master] ImportC: unrecognized C initializer with array in struct
2023-12-11 00:38:31 -08:00
Martin Kinkelin
812d0611f2
Remove deprecated compiler/test/Makefile
2023-12-09 15:59:14 +01:00
Adam D. Ruppe
2d42fdbcf8
make pragma great again
2023-12-08 15:07:33 -05:00
Walter Bright
d560ead349
fix Issue 24264 - ImportC: inliner trips on _Bool return
2023-12-08 11:01:28 +01:00
Walter Bright
d6ec250275
add SearchOpt to enum type ( #15889 )
2023-12-08 14:56:03 +08:00
Walter Bright
4b78331358
fix Issue 24266 - ImportC: struct initializer entry gets ignored
2023-12-08 07:52:43 +01:00
Walter Bright
807373ae88
ImportC: support #define IDENT ( expression ) ( #15871 )
2023-12-04 22:16:07 -08:00
Walter Bright
faa773d627
fix Issue 23714 - compilable/testcstuff1.c:213:1: error: static assertion failed: u'ab' == 0x610062 ( #15878 )
2023-12-04 22:12:13 -08:00
Dennis
41f3577d7d
Merge pull request #15865 from dlang/stable
...
Merge stable into master
2023-11-26 13:11:56 +01:00
Walter Bright
ec34292ead
fix Issue 24262 - Assert error with bit fields ( #15864 )
2023-11-26 11:52:07 +01:00
Walter Bright
e1197fc765
fix Issue 24257 - ImportC: ICE on accessing last _Bool bitfield ( #15861 )
2023-11-25 22:45:30 +01:00
Walter Bright
b063e0c45c
fix Issue 24031 - ImportC: rejects nested C initializers ( #15858 )
2023-11-24 09:41:12 +01:00
Walter Bright
a423208c7a
Fix Issue 24125 - ImportC: vector type initializer not understood ( #15838 )
...
* fix Issue 24125 - ImportC: vector type initializer not understood
* fix Issue 24125 - ImportC: vector type initializer not understood
2023-11-22 20:10:44 -08:00
Walter Bright
8547e96ee1
fix Issue 24200 - ImportC: .di file collected macro conflicts with Special Token ( #15797 )
2023-11-22 11:41:55 +02:00
Nick Treleaven
fe4084e799
Fix error message when leftParenthesis
is missing for is
expression ( #15844 )
2023-11-22 10:58:46 +08:00
Iain Buclaw
0b18acb9bb
Merge pull request #15829 from ibuclaw/merge_stable
...
merge stable
2023-11-20 11:13:16 +00:00
Iain Buclaw
7afce7f466
Merge remote-tracking branch 'upstream/stable' into merge_stable
2023-11-20 10:03:05 +01:00
Nick Treleaven
31c5a894d2
Fix 'no overloads callable using mutable object' wording
...
The error is wrong, it should include the argument types as well.
E.g. `fail_compilation/ctor_attr.d` shows this error even though there
is actually a mutable overload `foo(string)`.
2023-11-19 22:52:49 +01:00
Martin Kinkelin
d0ccbea626
Move d_do_test unittest build+run from Makefile to run.d
...
AFAICT, the last piece missing from run.d to fully replace the
compiler/test/Makefile.
2023-11-19 13:37:20 +01:00
Razvan Nitu
f29a92dcbf
Extract Dsymbol.search from dsymbols.d and transform it into a visitor ( #15787 )
2023-11-19 06:39:57 +08:00
Nick Treleaven
14a49f62d5
Also show argument types
2023-11-17 21:36:23 +00:00
Nick Treleaven
22006b0bd3
Update a test with __ctor
2023-11-17 09:49:08 +00:00
Nick Treleaven
a107b933fb
Rebase & fix new test
2023-11-17 09:49:08 +00:00
Nick Treleaven
9c9b764e0f
Fix Issue 24248 - const constructor call with mutable target gives wrong error message
2023-11-17 09:49:08 +00:00
The Dlang Bot
0dfc7bd891
Merge pull request #15826 from ntrel/method-mod
...
[dmd/func.d] Reword 'method not callable using a $mod object' error for constructors
Signed-off-by: Dennis <dkorpel@users.noreply.github.com>
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2023-11-16 23:56:09 +01:00
Nick Treleaven
5cf5959e9f
Add test
...
Fix Issue 24247 - Improve constructor not callable using $modifier object error
2023-11-16 16:20:36 +00:00
Nick Treleaven
aa8d76cae1
Postpone minor changes
2023-11-16 16:10:34 +00:00
Nick Treleaven
c092d51723
Improve 'not callable using a $mod object' error
...
Change to 'cannot construct a $mod object' for constructor calls.
Add message showing `fd.loc` with params + mod.
2023-11-16 16:00:12 +00:00
Walter Bright
891cf59b1f
fix Issue 24184 - [REG 2.103] Segmentation fault accessing variable with align(N) > platform stack alignment ( #15820 )
2023-11-16 12:46:31 +02:00
Walter Bright
8c84af86bc
fix Issue 24155 - ImportC: accept C23 default initializers ( #15801 )
2023-11-15 13:04:42 -08:00
The Dlang Bot
00a2a7f180
Merge pull request #15814 from ntrel/ctor-attr
...
Show `TypeFunction.mod` in overload candidates
Signed-off-by: Dennis <dkorpel@users.noreply.github.com>
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2023-11-15 00:05:25 +01:00
Dennis Korpel
3d552df287
Fix 24072 - cast(__vector) array literal incorrectly triggers GC error
2023-11-15 00:03:57 +01:00
Nick Treleaven
0429883a78
More tests
2023-11-14 18:59:36 +00:00
Nick Treleaven
01377d9ab4
Update tests
2023-11-14 18:37:11 +00:00
Nick Treleaven
b0e4e533d1
Fix __ctor ident
2023-11-14 18:37:05 +00:00
Nick Treleaven
d5842945d9
Show TypeFunction.mod
in overload candidates
...
Fix Issue 22216 - Incomplete/incorrect error message for mutability overloads
2023-11-14 17:48:15 +00:00
Dennis Korpel
37bdb7fd1c
Add scope flag for dip1000 and dip25
2023-11-14 13:51:19 +01:00
Nick Treleaven
57e36ee22d
Fix aliasing function type returning a Type with TypeSuffixes ( #15805 )
...
Fix Issue 24206 - Can't alias a function type that returns a type with a TypeSuffix
Add isTypeSuffix() function.
This also means a function type with a TypeCtor is now deprecated, just
like a function pointer type with a TypeCtor.
This gives a better error message and simplifies the code.
2023-11-14 07:08:44 +08:00
Teodor Dutu
b9f8e7cf24
Fix Issue 24159: Store lowering of CatAssignExp
in a separate field ( #15791 )
...
This preserves the `CatAssignExp` in the AST until the glue layer where
an error is printed in case this expression is used with `-betterC`.
This is required to happen in the glue layer as the semantic analysis
doesn't correctly distinguish when code needs to be generated.
Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>
2023-11-13 13:06:02 +02:00
Dennis Korpel
84ca093464
Fix 24238 - Confusing "not an lvalue"error messages
2023-11-13 00:40:35 +01:00
Nick Treleaven
bc214e44d5
Add hint when declaring function with TypeCtor
2023-11-12 10:05:50 +01:00