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/36278] [4.2/4.3/4.4 Regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"



------- Comment #3 from jakub at gcc dot gnu dot org  2008-07-31 08:02 -------
Subject: Bug 36278

Author: jakub
Date: Thu Jul 31 08:01:25 2008
New Revision: 138361

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138361
Log:
        PR debug/36278
        * dwarf2out.c (get_context_die): New function.
        (force_decl_die, force_type_die): Use it.
        (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
        returns NULL, force generation of DW_TAG_typedef and put that into
        DW_AT_import.

        * g++.dg/debug/namespace2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/debug/namespace2.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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