svenbarth
|
ef10ce3bd0
* pgenutil.pas, generate_specialization:
|
пре 13 година |
svenbarth
|
04683c5f13
pgenutil.pas, generate_specialization:
|
пре 13 година |
svenbarth
|
a7a0ba0cf4
* Move the setup and teardown of the specialization symtable stack into two extra
|
пре 13 година |
svenbarth
|
c572395f61
* pgenutil.pas, generate_specialization & psub.pas, specialize_objectdefs:
|
пре 13 година |
svenbarth
|
7986f03186
* pgenutil.pas, generate_specialization:
|
пре 13 година |
svenbarth
|
52a6699d55
Check whether the globalsymtable is not Nil before using it! Otherwise an access violation occurs when compiling a program that contains specializations.
|
пре 14 година |
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 .
|
пре 14 година |
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).
|
пре 14 година |
svenbarth
|
7fa365233b
Fixed indentation.
|
пре 14 година |
svenbarth
|
6a83ebc4a5
Fix introduced regressions.
|
пре 14 година |
svenbarth
|
d55684937f
generate_specialization:
|
пре 14 година |
svenbarth
|
87d9714221
Somehow the changes regarding tf_methods_specialized weren't commited, thus here they are again:
|
пре 14 година |
svenbarth
|
461d231daa
Rebase to revision 19078 (directly before the merge of cpstrnew)
|
пре 14 година |
svenbarth
|
594f84dc2c
Merge branch 'unique-syms'
|
пре 14 година |
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)
|
пре 14 година |
svenbarth
|
950f1e6a73
This check was commited by accident; it was a remain from an experimental solution to the "fix compilation of fgl"-problem.
|
пре 14 година |
svenbarth
|
a133a6af3f
Fix compilation of unit "fgl.pp" and of test "tests/test/tgeneric29.pp".
|
пре 14 година |
svenbarth
|
90278ec755
Allow generics to be overloaded by variables.
|
пре 14 година |
svenbarth
|
bb61abe546
Finally fixed the handling of hint directives and added a comment explaining the situation in the context of generics.
|
пре 14 година |
svenbarth
|
6c96270eb6
Corrected the handling of hint directives.
|
пре 14 година |
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.
|
пре 14 година |
svenbarth
|
8f0583ffb2
Switching from overloaded type symbol to unique symbol per generic.
|
пре 14 година |
svenbarth
|
6cee1dc4a4
*pexpr.pas:
|
пре 14 година |
svenbarth
|
b1959e5e89
Moved "parse_generic_parameters" and "insert_generic_parameter_types" from "pdecl.pas" to "pgenutil.pas"
|
пре 14 година |
svenbarth
|
05e5bc031b
Moved "generate_specialization" from "ptype.pas" to "pgenutil.pas"
|
пре 14 година |
svenbarth
|
1e37c5d717
Added a file which will hold the various functions related to generic parsing. The header copyright notice and the info comment might not yet be final.
|
пре 14 година |