[GCC-XML] types for members incorrect when mixing typdef and templated classes
Brad King
brad.king at kitware.com
Mon May 18 10:54:59 EDT 2009
Matt Grasse wrote:
> typedef class A<bool> foobar;
>
> template <typename T> class Z
> {
> public:
> // x does not get the type 'foobar' but instead gets the type 'class A<bool>'
> foobar x;
> T ;
> };
This is a well-known problem and it cannot be fixed. GCC's parser
throws out the typedef so the xml dump can't see it. The same thing
happens when error messages get reported in pure GCC. The gcc devs
cannot agree on whether messages with the typedef names or with the
real types are more useful. Any attempt to bring up discussion on
this has failed to achieve anything but preservation of the status-quo.
-Brad
More information about the gccxml
mailing list