This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: debug/7580: incorrect/unfortunate DWARF-2 info for static const int class members


Synopsis: incorrect/unfortunate DWARF-2 info for static const int class members

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Nov 21 17:58:47 2002
State-Changed-Why:
    I have no idea about the theoretical indications made in the
    report about what would be correct or incorrect, but I can
    confirm the results: with gcc3.2 I cannot see the static
    variable in gdb.
    
    However, when compiled with 3.2.1, I get 
    (gdb) b C::foo
    the class C does not have any method named foo
    Hint: try 'C::foo<TAB> or 'C::foo<ESC-?>
    (Note leading single quote.)
    (gdb) ptype C
    type = class C {
      private:
        static const int foo;
    
      public:
        C & operator=(C const&);
        C(class C &);
        C(void);
    }
    which I attribute to the fact that I still have gdb 5.1.1.
    
    To make things worse, with gcc3.3CVS I am back to the state
    of 3.2, i.e. I cannot see the variable...

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7580


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]