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]

[Bug debug/53235] [4.8 Regression] 20120504 broke -fdebug-types-section


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

--- Comment #10 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-07-17 19:09:59 UTC ---
namespace E {
  class O {};
  void f (O o) {}
}
namespace F {
  class O {};
  void f (O fo) {}
}
E::O eo;
int main () {}
--------------------------------------------------------------------------------
-gdwarf-4 -fdebug-types-section
gdb ./a.out -ex 'ptype eo'
FAIL: gcc (GCC) 4.7.2 20120717 (prerelease)
FAIL: gcc (GCC) 4.8.0 20120717 (experimental)
type = class F::O {
    <no data fields>
}
--------------------------------------------------------------------------------
-gdwarf-4 -fno-debug-types-section
gdb ./a.out -ex 'ptype eo'
PASS: gcc (GCC) 4.7.2 20120717 (prerelease)
PASS: gcc (GCC) 4.8.0 20120717 (experimental)
type = class E::O {
    <no data fields>
}
--------------------------------------------------------------------------------
FAIL:
 <1><d4>: Abbrev Number: 13 (DW_TAG_variable)
    <d5>   DW_AT_name        : eo
    <da>   DW_AT_type        : <0xe8>
 <1><e8>: Abbrev Number: 14 (DW_TAG_class_type)
    <e9>   DW_AT_signature   : signature: 0x2ab8ef7c6fcf3265
Contents of the .debug_types section:
   Signature:     0x2ab8ef7c6fcf3265
 <1><25>: Abbrev Number: 2 (DW_TAG_namespace)
    <26>   DW_AT_name        : F


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