florian
923ad699a1
* fix test runner directive
2025-01-26 14:13:09 +01:00
florian
529091f620
* fixed test runner directives
2025-01-26 10:53:22 +01:00
Sven/Sarah Barth
3b7d9956ca
* fix #40653 : don't allow the use of a class during its declaration as parent for a nested class (Delphi compatible)
...
+ added test
2024-12-27 16:32:06 +01:00
Sven/Sarah Barth
310afcd783
* fix #41075 : don't allow @<anonfunc>
...
+ added tests
2024-12-26 12:48:44 +01:00
Sven/Sarah Barth
aa0ccd8b59
* fix #41072 : proc_to_procvar_equal_internal() might be passed a procvar in case of "procvar := @<anon func>", reject that as incompatible
...
+ added test
2024-12-25 22:30:30 +01:00
Michaël Van Canneyt
060c06c052
* Test for slice
2024-12-18 21:14:19 +01:00
florian
3d6710c0e3
* don't see illegal calling conventions for procedure variables, resolves #41041
2024-11-29 21:40:33 +01:00
florian
63734fb792
* unnecessary directives removed
2024-10-31 22:35:04 +01:00
florian
b28681e91d
* properly reject function calls as target of absolute, resolves #40977
...
* better error message on invalid expressions for absolute
2024-10-29 22:23:25 +01:00
florian
0735ac0d1f
* throw an error in iso/extended pascal mode if enum types are passed to writeln, resolves #40896
2024-08-24 22:14:43 +02:00
florian
8b2ebd07bf
* don't throw an internal error if a procedure is passed to a const formal parameter, resolves #40817
2024-06-13 22:32:54 +02:00
florian
2d1fba1fa1
* disable (type ...), it did never work and there are not test, resolves #40562
2024-04-24 22:51:11 +02:00
Sven/Sarah Barth
b0d61558e3
* fix #40725 : pass along whole array constructor to the Insert() so that it's converted with the correct checks
...
+ added test
2024-04-12 17:34:58 +02:00
florian
3cf7890352
* don't throw an internalerror in case of an illegal assignment to an open array, resolves #40662
2024-02-22 22:35:18 +01:00
florian
bccc0b195e
* allow type = type ... ; syntax only for previously declared types, avoids also internal error for #40566
2024-02-20 23:14:31 +01:00
florian
af482fde23
* generate specializations only of no error happened so far to prevent further (internal)errors, resolves #40646
2024-02-18 23:08:21 +01:00
florian
bc0d2293a1
* stricter type checking for set constants, resolves #40631
2024-02-09 23:36:44 +01:00
Sven/Sarah Barth
43721f21c4
* fix #40621 : when checking for visibility of members then always use the genericdefs for specializations for correct scoping
...
+ added test
2024-02-09 17:24:39 +01:00
florian
803a6fea24
* throw an error if instructions which needs an operand size is used with one operand being a reference without size
2023-09-16 23:25:31 +02:00
Sven/Sarah Barth
a20e8b9a3d
* fix #40095 : when searching a suitable constructor for the custom attribute don't allow the return of a procvar which can happen in Mac/TP procvar modes (like Delphi)
...
+ added test
2023-06-30 17:12:56 +02:00
Sven/Sarah Barth
8592d42afa
* test added for #40332 is supposed to fail
2023-06-30 16:24:20 +02:00
Sven/Sarah Barth
0b7a771ca9
* fix #40221 : don't allow a conversion from an anonymous function to a procvar type if compare_defs_ext already rejected them
...
+ added tests
2023-06-16 17:28:50 +02:00
florian
55deefbab5
* do not crash on illegal with statement, resolves #40118
2023-01-18 23:03:28 +01:00
florian
5598ffc210
* x86_64: warn only on negative offsets if rsp is involed, second part of #40113
...
+ tests
2023-01-17 23:09:42 +01:00
florian
8b08486fa1
* do not warn on lea e/rsp with negative address offset, part of #40113
...
+ tests
2023-01-15 23:06:05 +01:00
florian
7affd78904
* do not throw an internal error on typed constants with wrong element count, resolves #40066
2022-12-30 21:53:04 +01:00
J. Gareth "Curious Kit" Moreton
f54917d600
* New test to catch stack overflow in compiler ( #40010 )
2022-12-04 05:52:08 +00:00
florian
3f7bf0fd70
* stop generation of typed array constants if the size does not match, resolves #39980
2022-11-01 21:16:31 +01:00
florian
8e9a019fb7
* moved tests to proper location
2022-08-28 21:44:33 +02:00
Ondrej Pokorny
55629aeb19
do not publish enums with jumps
2022-08-16 20:47:44 +02:00
Sven/Sarah Barth
35958a9b6b
* fix #39860 : even if the block type is not correct for the specialization of a generic routine continue to specialize it to not trigger e.g. an internal error
...
+ added tests
2022-08-12 14:46:56 +02:00
Sven/Sarah Barth
c122e16beb
* fix #39849 : it's an error when the file (or string) parameter of a Read*/Write* is followed by a ":"
...
+ added test
2022-07-29 17:34:55 +02:00
florian
ceda27ae25
* allow type parameters in variant parts of records as we do not now
...
what type is used during specialization, resolves #39805
2022-06-28 22:45:17 +02:00
florian
8eb2cea349
* do not throw an internal error if slice is used on dyn. array paramters, resolves #39806
2022-06-23 23:11:18 +02:00
Sven/Sarah Barth
7f9428eed5
* add cblock directive so that the test fails for the correct reason
2022-05-26 21:42:51 +02:00
florian
559fcdf736
* forbid cyclic pointer definitions, resolves #39634
2022-04-21 20:03:05 +02:00
florian
43b4b34395
* disallow offsetof trick for types involving implicit dereferences, resolves #39667 partially
2022-04-14 17:06:15 +02:00
florian
54dccaaad1
* do not crash in case of too many $push directives, resolves #39652
2022-04-07 22:51:30 +02:00
florian
4718029fe0
* do not throw an error if syscall is used with a syntax not applicable for the current
...
target, resolves #39640
2022-03-30 23:07:34 +02:00
florian
ae89261008
* prevent that a absolute symbol references itself, resolves #39604
2022-03-06 22:01:56 +01:00
florian
ac53225817
* test for already resolved issue #38874
2022-03-03 21:24:43 +01:00
florian
2b66f60a88
* do not throw an internal error in case of a misplaced string, resolves #39609
2022-03-02 23:09:53 +01:00
Sven/Sarah Barth
b5e57a63f5
+ add test for already fixed #22252
2022-01-09 12:29:08 +01:00
florian
00d4a6889d
* add no internal flag when folding constants in taddnode.simplify, resolves #39308
2021-10-12 22:59:45 +02:00
Jonas Maebe
ab01b0ebd7
Typed constants: no internalerror on failure
...
Don't check whether the expression queue is empty in the destructor in case
there was an error. Also improved error messages (constant expression instead
of variable expression expected).
Resolves #39393
2021-10-03 21:46:23 +02:00
florian
0a3efb6702
+ test for already fixed #26016
...
git-svn-id: trunk@49407 -
2021-05-29 10:05:54 +00:00
svenbarth
f9957f30a5
* fix for Mantis #38771 : the owner of the procdef might be Nil in case of a specialization (that virtual can't be used on generics is caught later on)
...
+ added test
git-svn-id: trunk@49228 -
2021-04-18 14:01:09 +00:00
svenbarth
2885d3ab56
* fix for Mantis #37426 : don't allow an instance function of a type helper to be used on the type instead of a concrete value
...
+ added test
git-svn-id: trunk@49102 -
2021-04-02 15:25:01 +00:00
florian
60c8b71bae
* string constants have a size of 0, resolves #38504
...
git-svn-id: trunk@48759 -
2021-02-21 18:46:00 +00:00
florian
ecce39a3b2
+ throw a warning in ISO mode if a constant string is assigned to a char and the sizes do not match, resolves #38439
...
git-svn-id: trunk@48563 -
2021-02-09 20:48:27 +00:00