diff options
author | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2012-02-04 11:33:17 +0000 |
---|---|---|
committer | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2012-02-04 11:33:17 +0000 |
commit | 5ba849840d7e1a73e2fa444264c2c9aea086ca94 (patch) | |
tree | 01b0ffd9f24151fd14eba9d3911a9a59b0e3bff6 /tests/test/ugeneric74b.pp | |
parent | a6fda1f13504576c1f92b9c2d136c7ee24c1d0b8 (diff) | |
download | fpc-5ba849840d7e1a73e2fa444264c2c9aea086ca94.tar.gz |
* pgenutil.pas, generate_specialization & psub.pas, specialize_objectdefs:
When specializing a generic the references from unitsyms to the loaded modules
needs to be reestablished, so that "unitidentifier.identifier" can be used
inside a generic without leading to an access violation.
Only global units are checked, because a generic must not use symbols from the
static symtable or from units used by the implementation section (the latter is
currently not checked)
+ added tests for the above problem for "normal" units as well as units with a namespace
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@20245 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/test/ugeneric74b.pp')
-rw-r--r-- | tests/test/ugeneric74b.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test/ugeneric74b.pp b/tests/test/ugeneric74b.pp new file mode 100644 index 0000000000..786e44d1bf --- /dev/null +++ b/tests/test/ugeneric74b.pp @@ -0,0 +1,14 @@ +unit ugeneric74b; + +interface + +procedure Test; + +implementation + +procedure Test; +begin + +end; + +end. |