[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gccxml
Subject:    Re: [GCC-XML] types for members incorrect when mixing typdef and
From:       Matt Grasse <mattg () carbondesignsystems ! com>
Date:       2009-05-18 15:43:35
Message-ID: 3E81A568A9EB894A9BD6AE7CDD3AA9031C21E9BA15 () BE198 ! mail ! lan
[Download RAW message or body]

Thanks for the info.  Guess we'll just make do without the typedef.

Matt

-----Original Message-----
From: Brad King [mailto:brad.king@kitware.com] 
Sent: Monday, May 18, 2009 9:55 AM
To: Matt Grasse
Cc: gccxml@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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.gccxml.org/mailman/listinfo/gccxml
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic