Commit Graph

2 Commits

Author SHA1 Message Date
William S Fulton 56fa3fb5d2 Re-enable template_parameters_global_scope test
Uncomment the rejig1-6 calls in the Java runme now that the
template_parameters_global_scope Rejig test code was enabled for Lua.

The Rejig case uses a default template argument qualified with the unary
scope operator (template<typename T=::Spade>). It has been correctly
supported since commit 26e14c4f1 (Fix scope lookup for template parameters
containing unary scope operators), which introduced this test file and
resolved the nested ::Integer typedef through scope-qualified template
arguments.
2026-05-31 15:10:03 +01:00
William S Fulton 26e14c4f18 Fix scope lookup for template parameters containing unary scope operators
Fixes cases like:

namespace Alloc {
  template<typename T> struct Rebind {
    typedef int Integer;
  };
}
%template(RebindBucket) Alloc::Rebind< Bucket >;
OR
%template(RebindBucket) Alloc::Rebind< ::Bucket >;

Alloc::Rebind< Bucket >::Integer Bucket1() { return 1; }
Alloc::Rebind< ::Bucket >::Integer Bucket2() { return 2; }
Alloc::Rebind<::template TemplateBucket<double>>::Integer Bucket3() { return 3; };
2017-08-16 00:24:24 +01:00