OSDN Git Service

Fix PR c++/47291
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Jan 2011 22:57:47 +0000 (22:57 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Jan 2011 22:57:47 +0000 (22:57 +0000)
commit02db81fac54b0a6ce4ca633a70c832dd58a5fb8d
tree9ac8184cce5ae01b7ba4b1252ac5dcc5e8f92a11
parent36a2709b66ea2d877e935e0bd4cb6391ace472d3
Fix PR c++/47291

gcc/
PR c++/47291
* dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
(gen_scheduled_generic_parms_dies): New functions.
(gen_struct_or_union_type_die): Schedule template parameters DIEs
generation for the end of CU compilation.
(dwarf2out_finish): Generate template parameters DIEs here.

gcc/testsuite/

PR c++/47291
* g++.dg/debug/dwarf2/template-params-10.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169036 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/template-params-10.C [new file with mode: 0644]