[GCC-XML] types for members incorrect when mixing typdef and templated classes
Matt Grasse
mattg at carbondesignsystems.com
Mon May 18 11:43:35 EDT 2009
Thanks for the info. Guess we'll just make do without the typedef.
Matt
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: Monday, May 18, 2009 9:55 AM
To: Matt Grasse
Cc: gccxml at gccxml.org
Subject: Re: [GCC-XML] types for members incorrect when mixing typdef and templated classes
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