--- 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 -, tromey at gcc dot gnu dot org wrote:
Jan Tom, could you elaborate why x1 and x2 should be
--- Comment #7 from tromey at gcc dot gnu dot org 2008-09-23 20:48 ---
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
--- Comment #5 from tromey at gcc dot gnu dot org 2008-09-22 15:19 ---
No, I think we have to record what the user actually wrote.
For instance, consider:
#include string
using namespace std;
std::string x1;
string x2;
If we record the fully qualified name, we can't distinguish these
--- Comment #6 from jan dot kratochvil at redhat dot com 2008-09-22 15:32
---
Tom, could you elaborate why x1 and x2 should be printed differently?
I do not say they should not but I do not see a clear reason for either way.
Should we also try to record the source name of this
--- Comment #4 from dodji at gcc dot gnu dot org 2008-09-21 13:28 ---
What if gcc always outputs the fully qualified type name ?
Today's DWARF supports the DW_TAG_imported_module tag that should let the
debugger know that a using namespace std; was present in the lexical block
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-09-20 09:07 ---
It is not possible to fix this in GCC today. But we can of course output
the debug information for decls and types from the frontends ;)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37590
--- Comment #1 from pinskia at gmail dot com 2008-09-19 18:11 ---
Subject: Re: New: g++ should emit different debug info for variable's type
Sent from my iPhone
On Sep 19, 2008, at 10:58 AM, tromey at gcc dot gnu dot org
[EMAIL PROTECTED]
wrote:
Consider this code:
#include
--- Comment #2 from tromey at gcc dot gnu dot org 2008-09-19 18:59 ---
Consider this code:
#include string
std::string zardoz1;
using std::string;
string zardoz2;
In this case, IMO, 'whatis' should print 'std::string' for zardoz1,
but just 'string' for zardoz2.
This is simply not