[Bug c++/37590] g++ should emit different debug info for variable's type

2008-10-15 Thread drow at false dot org
--- 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

[Bug c++/37590] g++ should emit different debug info for variable's type

2008-09-23 Thread tromey at gcc dot gnu dot org
--- 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

[Bug c++/37590] g++ should emit different debug info for variable's type

2008-09-22 Thread tromey at gcc dot gnu dot org
--- 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

[Bug c++/37590] g++ should emit different debug info for variable's type

2008-09-22 Thread jan dot kratochvil at redhat dot com
--- 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

[Bug c++/37590] g++ should emit different debug info for variable's type

2008-09-21 Thread dodji at gcc dot gnu dot org
--- 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

[Bug c++/37590] g++ should emit different debug info for variable's type

2008-09-20 Thread rguenth at gcc dot gnu dot org
--- 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

[Bug c++/37590] g++ should emit different debug info for variable's type

2008-09-19 Thread pinskia at gmail dot com
--- 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

[Bug c++/37590] g++ should emit different debug info for variable's type

2008-09-19 Thread tromey at gcc dot gnu dot org
--- 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