public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/27160] New: Debugging output forgets scope for typedefs.
@ 2006-04-14 12:47 drow at gcc dot gnu dot org
2006-04-19 0:39 ` [Bug debug/27160] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: drow at gcc dot gnu dot org @ 2006-04-14 12:47 UTC (permalink / raw)
To: gcc-bugs
Compile this simple code with g++ -g. I tried 3.3, 4.0, and 4.1 compilers.
namespace bar
{
struct whatever
{
int someval;
};
typedef whatever zot;
};
int main()
{
bar::whatever b;
bar::zot c;
return 1;
}
The debugging information will reveal that "whatever" is in bar, but not "zot".
In fact, "zot" will appear to be defined in main instead. This prevents the
debugger from e.g. "ptype bar::zot".
--
Summary: Debugging output forgets scope for typedefs.
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: drow at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27160
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/27160] Debugging output forgets scope for typedefs.
2006-04-14 12:47 [Bug debug/27160] New: Debugging output forgets scope for typedefs drow at gcc dot gnu dot org
@ 2006-04-19 0:39 ` pinskia at gcc dot gnu dot org
2010-02-05 18:04 ` tromey at gcc dot gnu dot org
2010-02-22 21:34 ` drow at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-19 0:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-04-19 00:39 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-04-19 00:39:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27160
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/27160] Debugging output forgets scope for typedefs.
2006-04-14 12:47 [Bug debug/27160] New: Debugging output forgets scope for typedefs drow at gcc dot gnu dot org
2006-04-19 0:39 ` [Bug debug/27160] " pinskia at gcc dot gnu dot org
@ 2010-02-05 18:04 ` tromey at gcc dot gnu dot org
2010-02-22 21:34 ` drow at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2010-02-05 18:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tromey at gcc dot gnu dot org 2010-02-05 18:04 -------
I tried this with some random svn trunk checkout, and it worked ok:
<1><25>: Abbrev Number: 2 (DW_TAG_namespace)
<26> DW_AT_name : bar
<2a> DW_AT_decl_file : 1
<2b> DW_AT_decl_line : 2
<2c> DW_AT_sibling : <0x42>
<2><30>: Abbrev Number: 3 (DW_TAG_structure_type)
<31> DW_AT_name : (indirect string, offset: 0x4c): whatever
<35> DW_AT_declaration : 1
<2><36>: Abbrev Number: 4 (DW_TAG_typedef)
<37> DW_AT_name : zot
<3b> DW_AT_decl_file : 1
<3c> DW_AT_decl_line : 7
<3d> DW_AT_type : <0x42>
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
Known to work| |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27160
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/27160] Debugging output forgets scope for typedefs.
2006-04-14 12:47 [Bug debug/27160] New: Debugging output forgets scope for typedefs drow at gcc dot gnu dot org
2006-04-19 0:39 ` [Bug debug/27160] " pinskia at gcc dot gnu dot org
2010-02-05 18:04 ` tromey at gcc dot gnu dot org
@ 2010-02-22 21:34 ` drow at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: drow at gcc dot gnu dot org @ 2010-02-22 21:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from drow at gcc dot gnu dot org 2010-02-22 21:34 -------
Works for me too, using GCC 4.4.
--
drow at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27160
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-22 21:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-14 12:47 [Bug debug/27160] New: Debugging output forgets scope for typedefs drow at gcc dot gnu dot org
2006-04-19 0:39 ` [Bug debug/27160] " pinskia at gcc dot gnu dot org
2010-02-05 18:04 ` tromey at gcc dot gnu dot org
2010-02-22 21:34 ` drow at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).