bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/536] New: stab_demangle_template() fails for pointer args


From: cholland at lucent dot com
Subject: [Bug binutils/536] New: stab_demangle_template() fails for pointer args longer than 9 chars (with gcc 2.95)
Date: 10 Nov 2004 15:26:32 -0000

objdump -g fails with following (compiled with gcc 2.95)  
--------------------------------------- 
template < int* i > 
class Foo_ { 
public: 
  static int counter() { return *i; } 
}; 
int c_o_u_n_t_e_r = 99; 
Foo_< &c_o_u_n_t_e_r > foo_; 
--------------------------------------- 
I recommend the following change in stabs.c, stab_demangle_template() 
4450c4450,4452 
<             if (! stab_demangle_get_count (pp, &len)) 
--- 
>             /* without the mandatory underscore at the end */ 
>             len = stab_demangle_count(pp); 
>             if (!len)

-- 
           Summary: stab_demangle_template() fails for pointer args longer
                    than 9 chars (with gcc 2.95)
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: cholland at lucent dot com
                CC: bug-binutils at gnu dot org


http://sources.redhat.com/bugzilla/show_bug.cgi?id=536

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]