[GCC-XML] Adding instantiated class template arguments to the output 2
Brad King
brad.king at kitware.com
Tue Jun 7 08:27:39 EDT 2005
Roman Yakovenko wrote:
> The code
>
> std::vector<int> x();
>
> After running GCC-XML I will find class named: "std::vector< int,
> std::allocator< int > >", but I will not find class named "allocator<
> int >". Is this intended or bug? It seems to me that If I had
> "std::vector< int, std::allocator< int > >" then some where I should
> have "std::allocator< int >". May be I wrong?
GCC-XML can only dump that which GCC instantiates, and in the case of
-fxml-start what is reachable by following references in the declarative
interface. In this case the allocator argument to vector is not used in
the interface, except possibly by reference or in a templated
constructor that is not instantiated. Therefore it is not reached.
-Brad
More information about the gccxml
mailing list