[GCC-XML] Trouble with __attribute and templates

J.-P. Pellet jpp-mac at gmx.net
Wed Jun 3 13:38:02 EDT 2009


I'm having problems tagging a template with a gccxml attribute.

If I tag a class like this:

   class __attribute((gccxml("MyAttribute"))) SomeClass {};

then, sure enough, I get MyAttribute in gccxml's output. However, if I  
try

   template<typename T>
   class __attribute((gccxml("MyAttribute"))) SomeClass {};

then MyAttribute seems to be lost when a template is instantiated.  
What am I doing wrong here?

Cheers,
J.-P.



More information about the gccxml mailing list