Commit graph

40602 commits

Author SHA1 Message Date
Dennis
978b108b1b
Remove cast(STC) from TypeTag.semantic (#20931) 2025-03-01 00:44:56 +01:00
Dennis
2c304a4377
Fix #20929 - #line directives mess up -verrors=context (#20930) 2025-02-28 23:47:26 +01:00
Dennis
3945e81615
Fix #20907 - DMD segfaults with static array length parameter derived from left-shifted template parameter property (#20919) 2025-02-28 21:46:10 +01:00
Dennis
fcc982617a
Use typed STC instead of StorageClass / ulong (#20928) 2025-02-28 19:53:22 +01:00
Walter Bright
ebb0bf65e6
more work on variadic functions (#20918) 2025-02-28 09:31:45 -08:00
Dennis
216837beca
Devirtualize Dsymbol.isXXX functions (#20925) 2025-02-28 07:31:47 +08:00
Paul Backus
5fc114165d
Fix importc_compare test on Windows (#20922)
MSVC does not support C11 atomics, but it still provides a "stub"
version of stdatomic.h, which aborts compilation with an #error
directive when included.

To avoid this error, explicitly set the C standard to C11 when invoking
the C preprocessor on Windows, and check for the C11 macro
__STDC_NO_ATOMICS__ before including stdatomic.h.
2025-02-27 20:15:31 +01:00
Matthew Qiu
996acb0528
Extract Dsymbol.oneMember to a visitor in dsymbolsem (#20915) 2025-02-25 21:19:58 +08:00
Adam Wilson
53a1cc8d13
Merge pull request #20910 from LightBender/odbc-deprecate
Deprecate the old ODBC 3.5 modules in core.sys.windows.
2025-02-25 02:14:50 -08:00
Walter Bright
beef42ebb4
fix #20912 lexing problem with #define // comments (#20914) 2025-02-25 17:34:19 +08:00
Walter Bright
152815e9ec
add prolog_genva_start() (#20909) 2025-02-24 17:31:08 -08:00
Adam Wilson
a0581f2538 Fix deprecation message. 2025-02-23 16:58:46 -08:00
Adam Wilson
d1d6c60a12 Move ODBVER outside of deprecation block. 2025-02-23 16:32:28 -08:00
Adam Wilson
a9b688f2fd Fix deprecation message. 2025-02-23 16:20:53 -08:00
Adam Wilson
b76d185fa1 Fix deprecation message. 2025-02-23 16:03:26 -08:00
Adam Wilson
60d915b23d Deprecate the old ODBC 3.5 modules in core.sys.windows. 2025-02-23 15:46:01 -08:00
Walter Bright
ee82f26a79
start on prolog_genvarargs() (#20905) 2025-02-21 16:28:01 +08:00
Walter Bright
5529c3f91b
detab cod1.d (#20906) 2025-02-21 13:59:50 +08:00
Dennis
1d8658d722
Fix #20889 - ImportC: Usage of typedef types decays to original type (#20904) 2025-02-20 15:01:09 +01:00
Dennis
54a142412c
Improve error for failing opDispatch instantiation (#20902) 2025-02-20 10:40:10 +01:00
Matthew Qiu
f88520c3c1
Extract Dsymbol.checkCtorConstInit and make it a visitor in dsymbolsem (#20819) 2025-02-20 17:28:34 +08:00
Steven Schveighoffer
60a3060cdf
Use Entry struct from TypeInfo_AssociativeArray instead of local one, (#20900)
just one less template and one less place to maintain.
2025-02-20 06:00:27 +08:00
The Dlang Bot
016c38e276
Merge pull request #20863 from rainers/rainer_aa_fak_entry_ti
Fix issue #17503 - Associative Arrays improperly register a GC-allocated TypeInfo for element cleanup

Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Signed-off-by: Steven Schveighoffer <schveiguy@users.noreply.github.com>
Merged-on-behalf-of: Steven Schveighoffer <schveiguy@users.noreply.github.com>
2025-02-19 17:59:27 +01:00
Dennis
34cf3a9503
Fix #20894 (#20895)
- pragma(msg) interprets printf format specifiers
2025-02-19 13:42:21 +08: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
Rainer Schuetze
edd9eb5a2f
do not gag a fatal error (#20892) 2025-02-18 22:51:40 +01:00
Rainer
6551d7b988 remove redundant getTypeInfoType call 2025-02-18 21:17:42 +01:00
Rainer
b0ecd45211 adapt TypeInfoAssociativeArrayDeclaration in declaration.h 2025-02-18 20:25:45 +01:00
Rainer
c4a9796472 add test case from #20853 2025-02-18 13:51:06 +01: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
Rainer
28364abd38 generate full AA typeinfo in InExp 2025-02-18 09:22:39 +01:00
Walter Bright
56f35fd4df add loads of floating point constants 2025-02-18 08:59:02 +01:00
Rainer
7496f54fc4 substitute inout with const in key and value types 2025-02-18 08:09:51 +01:00
Rainer
76f066303d fix frontend.h 2025-02-18 00:04:54 +01:00
Dennis Korpel
b5e0bee399 Fix fail_compilation/retscope TEST_OUTPUT blocks 2025-02-17 23:29:05 +01:00
The Dlang Bot
62035067d8
Merge pull request #20886 from dkorpel/unittest-linkage-loc
Simplify linkage_location unittest 

Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2025-02-17 23:28:11 +01:00
Rainer
7d6fff7bcf Fix issue #17503 - Associative Arrays improperly register a GC-allocated TypeInfo for element cleanup
- let the compiler generate type info for the AA Entry and add it to TypeInfo_AssociativeArray
- strip modifiers for index and next in TypeInfo_AssociativeArray to make it agnostic to changes by the glue layer
2025-02-17 22:02:57 +01:00
Dennis Korpel
3efb88d327 Remove redundant tests 2025-02-17 19:33:21 +01:00
Dennis Korpel
b58d9113ba Simplify linkage_location unittest 2025-02-17 19:32:04 +01:00
Dennis
4d4d09ab33
Fix allman brace style (#20885) 2025-02-17 22:23:33 +08:00
Walter Bright
ef47ecf0a2
add floating support to tstresult() (#20884) 2025-02-17 12:07:45 +01:00
Dennis
c0c1b0ab12
Use __FILE__, __LINE__ for templated tracegc hooks (#20882) 2025-02-17 11:53:16 +01:00
Walter Bright
5d96a3cbe1
redo cdnot() floating point implementation (#20883) 2025-02-17 00:01:40 -08:00
Alexander Heistermann
eb21e50e74
Visual Studio Project for druntime #20783 (#20837) 2025-02-17 09:50:30 +08:00
Dennis Korpel
ff28aa1195 Improve field layout of Declaration 2025-02-17 00:43:06 +01:00
Dennis Korpel
efd10b140c Print function bodies instead of __lambda in error messages 2025-02-17 00:41:33 +01:00
Dennis
0bb48e277c
Remove version (tracegc) blocks (#20881) 2025-02-17 07:15:00 +08:00
Dennis Korpel
24f80a0c42 Put more types in Mcache 2025-02-16 23:48:20 +01:00
Dennis Korpel
b0d35f225f Remove unused TypeIdentifier.originalSymbol 2025-02-16 23:46:47 +01:00