Jonas Maebe
|
07ebc51b6c
* always store generics token streams in little endian, so we don't have to
|
hace 13 años |
svenbarth
|
a908db5a91
Partially fix for Mantis #22160. This resolves the internal error, but the given example units still don't compile, because of the way we handle specializations and unit loading (more about this once I fixed that, too).
|
hace 13 años |
svenbarth
|
75bf094e3f
Fix for Mantis #21064.
|
hace 13 años |
svenbarth
|
d2fabd2a22
Fix for Mantis #21350
|
hace 13 años |
paul
|
4312aa4e08
compiler: allow compiler to find real class definition during class members parse to handle references to self constants + test
|
hace 13 años |
svenbarth
|
b3595893c8
pgenutil.pas, generate_specialization: set the correct module index, so that warnings, etc. that are generated for a type declaration are printed using the module where the generic came from (this is already done for method bodies, but not for declarations)
|
hace 13 años |
svenbarth
|
810bd7ddab
+ symtable.pas, tspecializesymtable.create: SymList and DefList do not need to own the symbols and defs as they are moved to another symtable before the specialize symtable is destroyed (avoids the need to call "extract" on those lists)
|
hace 13 años |
Jonas Maebe
|
24be42d509
* changed "crc" variable from longint to cardinal to avoid (harmless) range
|
hace 13 años |
svenbarth
|
5b1b194b47
* pdecvar.pas, read_record_fields: don't generate BSS-data for generic static fields (doesn't fix any specific bug, but we don't need space reserved for the field)
|
hace 13 años |
svenbarth
|
ef10ce3bd0
* pgenutil.pas, generate_specialization:
|
hace 13 años |
svenbarth
|
04683c5f13
pgenutil.pas, generate_specialization:
|
hace 13 años |
svenbarth
|
a7a0ba0cf4
* Move the setup and teardown of the specialization symtable stack into two extra
|
hace 13 años |
svenbarth
|
c572395f61
* pgenutil.pas, generate_specialization & psub.pas, specialize_objectdefs:
|
hace 13 años |
svenbarth
|
7986f03186
* pgenutil.pas, generate_specialization:
|
hace 13 años |
svenbarth
|
52a6699d55
Check whether the globalsymtable is not Nil before using it! Otherwise an access violation occurs when compiling a program that contains specializations.
|
hace 13 años |
svenbarth
|
fca525a85b
When checking whether the current specialization was already done before we also need to check the globalsymtable if we're currently in the implementation section. Otherwise the specialization will be generated twice and will result in a "duplicate identifier" error. This fixes mantis #20872 .
|
hace 13 años |
svenbarth
|
b240dc129f
Don't push the local symtable of the current module, but of that module the generic belongs to (should fix compilation error of Lazarus).
|
hace 13 años |
svenbarth
|
7fa365233b
Fixed indentation.
|
hace 13 años |
svenbarth
|
6a83ebc4a5
Fix introduced regressions.
|
hace 13 años |
svenbarth
|
d55684937f
generate_specialization:
|
hace 13 años |
svenbarth
|
87d9714221
Somehow the changes regarding tf_methods_specialized weren't commited, thus here they are again:
|
hace 13 años |
svenbarth
|
461d231daa
Rebase to revision 19078 (directly before the merge of cpstrnew)
|
hace 13 años |
svenbarth
|
594f84dc2c
Merge branch 'unique-syms'
|
hace 13 años |
svenbarth
|
3dcefeb20b
Set "current_structdef", "current_genericdef" and "current_specializedef" to values that were valid during the declaration of the generic when specializing it ("current_genericdef" and "current_specializedef" might need to still be corrected though)
|
hace 14 años |
svenbarth
|
950f1e6a73
This check was commited by accident; it was a remain from an experimental solution to the "fix compilation of fgl"-problem.
|
hace 14 años |
svenbarth
|
a133a6af3f
Fix compilation of unit "fgl.pp" and of test "tests/test/tgeneric29.pp".
|
hace 14 años |
svenbarth
|
90278ec755
Allow generics to be overloaded by variables.
|
hace 14 años |
svenbarth
|
bb61abe546
Finally fixed the handling of hint directives and added a comment explaining the situation in the context of generics.
|
hace 14 años |
svenbarth
|
6c96270eb6
Corrected the handling of hint directives.
|
hace 14 años |
svenbarth
|
c17a8d36ae
generate_specialization needs to return the correct generic def if the parent classes are parsed, so that that the usage of generic interfaces is allowed.
|
hace 14 años |