------- Comment #8 from drow at gcc dot gnu dot org  2008-10-15 19:01 -------
Subject: Re:  g++ should emit different debug info for
        variable's type

On Tue, Sep 23, 2008 at 08:48:32PM -0000, tromey at gcc dot gnu dot org wrote:
> Jan> Tom, could you elaborate why x1 and x2 should be printed differently?
> Jan> I do not say they should not but I do not see a clear reason for either
> way.
> 
> My view is that "whatis" should print the declared type, as much as possible.
> Note that this is a contrived example.  Here, it hardly matters.  However,
> there are many cases where "whatis" shows something incomprehensible
> to the user.

FYI, I don't think this is a good example of where GCC should do
better.  If you give different types for all source representations of
the type, you'll sometimes need full versions of the class and all its
methods for each of the alternate spellings; wasteful and confusing to
the debugger.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37590

Reply via email to