[Bug debug/44645] [4.5 Regression] missing debug info for pointer types

2010-09-18 Thread redi at gcc dot gnu dot org


--- Comment #8 from redi at gcc dot gnu dot org  2010-09-18 13:20 ---
*** Bug 45717 has been marked as a duplicate of this bug. ***


-- 

redi at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||charlet at gcc dot gnu dot
   ||org


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



[Bug debug/44645] [4.5 Regression] missing debug info for pointer types

2010-09-18 Thread hjl dot tools at gmail dot com


--- Comment #9 from hjl dot tools at gmail dot com  2010-09-18 13:26 ---
This is caused by revision 154354:

http://gcc.gnu.org/ml/gcc-cvs/2009-11/msg00575.html


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

 CC||jason at redhat dot com


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



[Bug debug/44645] [4.5 Regression] missing debug info for pointer types

2010-09-18 Thread hjl dot tools at gmail dot com


--- Comment #10 from hjl dot tools at gmail dot com  2010-09-18 14:13 
---


*** This bug has been marked as a duplicate of 43628 ***


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


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



[Bug debug/44645] [4.5 Regression] missing debug info for pointer types

2010-08-19 Thread redi at gcc dot gnu dot org


--- Comment #6 from redi at gcc dot gnu dot org  2010-08-19 12:26 ---
(adjusting title to be more general)

testcase from dup Bug 45181

struct S { int f(S*); };

int S::f(S* p)
{
return 0;
}

int main()
{
S s;
return s.f(s);
}

within S::f p has type void*


Tom, CCing you as you've correctly identified this as a GCC 4.5 bug at
http://gcc.gnu.org/ml/libstdc++/2010-06/msg00159.html and
http://sourceware.org/bugzilla/show_bug.cgi?id=11639


-- 

redi at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||tromey at gcc dot gnu dot
   ||org
  Known to fail|4.5.0   |4.5.0 4.5.1
Summary|[4.5 Regression] wrong debug|[4.5 Regression] missing
   |info for nested typedef |debug info for pointer types


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



[Bug debug/44645] [4.5 Regression] missing debug info for pointer types

2010-08-19 Thread redi at gcc dot gnu dot org


--- Comment #7 from redi at gcc dot gnu dot org  2010-08-19 12:32 ---
testcase from Bug 45334 reduced to a single file:

struct Base
{
virtual ~Base();
};

Base::~Base() {}

struct Derived : Base
{
virtual ~Derived();
void foo();
};

Derived::~Derived() {}

void Derived::foo()
{
Base *b = this;
Base br = *b;
}

int main()
{
Derived d;
d.foo();
Base *b = d;
}

Within Derived::foo b has type void*

Breakpoint 1, Derived::foo (this=0x7fffe5f0) at bug.cc:18
18  Base *b = this;
(gdb) ptype b
type = void *


-- 


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