This is the mail archive of the gcc-patches@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: [PATCH] PR debug/45024


On Thu, Jul 22, 2010 at 2:44 AM, Dodji Seketeli <dodji@redhat.com> wrote:
> Hello,
>
> Consider this testcase:
> struct S {
> ?template<typename Z> struct T { };
> };
>
> S::T<int> tval;
>
> In this PR, the DIE of S::T<int> is not a child of the DIE of S. Rather
> it's a child of the compilation unit DIE.
>
> That patch below addresses that issue.
>
> Fully bootstrapped and tested against trunk on x86_64-unknown-linux-gnu.
>
> OK to commit to trunk?
>
> ? ?gcc/ChangeLog:
> ? ? ? ?PR debug/45024
> ? ? ? ?* dwarf2out.c (scope_die_for): Don't fall back to the compilation
> ? ? ? ?unit DIE if we can find the scope DIE.
>
> ? ?gcc/testsuite/ChangeLog:
> ? ? ? ?PR debug/45024
> ? ? ? ?* g++.dg/debug/dwarf2/nested-2.C: New test case.
>

This caused:

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


-- 
H.J.


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