summaryrefslogtreecommitdiffstats
path: root/test/input
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-19 18:35:01 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-19 18:56:03 (GMT)
commitc7de52912ca365accc004b01ba95a2bfebe14b0e (patch)
treeb0e08f94e719659962d993d65823f73977d4220c /test/input
parent919b87c0172b4e623feb6870983152f3be0b2748 (diff)
downloadCastXML-c7de52912ca365accc004b01ba95a2bfebe14b0e.zip
CastXML-c7de52912ca365accc004b01ba95a2bfebe14b0e.tar.gz
CastXML-c7de52912ca365accc004b01ba95a2bfebe14b0e.tar.bz2
Output: Fix access specifier of incomplete class template instantiations
In code like class foo { template <typename> class bar {}; typedef bar<char> incomplete; }; template class foo::bar<int>; // complete the instantiations of `foo::bar<>` should have the same access as the original template whether they are fully instantiated or incomplete. GitHub-Issue: CastXML/CastXML#56
Diffstat (limited to 'test/input')
-rw-r--r--test/input/Class-member-template-access.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/input/Class-member-template-access.cxx b/test/input/Class-member-template-access.cxx
index d05fe4b..1bcead7 100644
--- a/test/input/Class-member-template-access.cxx
+++ b/test/input/Class-member-template-access.cxx
@@ -1,4 +1,6 @@
class start {
template <typename> class member {};
+public:
+ typedef member<char> member_char; // incomplete
};
template class start::member<int>; // instantiation