]> git.ipfire.org Git - thirdparty/gcc.git/commit
Propagate the source location from a template function's definition to
authorjyasskin <jyasskin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Nov 2010 00:24:54 +0000 (00:24 +0000)
committerjyasskin <jyasskin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Nov 2010 00:24:54 +0000 (00:24 +0000)
commit653d3aa04002bb2bcf00b2c5b5285275661d80cd
tree994a017754e21158f9b38cf8a7a3e9da2fd960cd
parent283c23f7bf7b394b3b2c004b999777bfbe82587d
Propagate the source location from a template function's definition to
any already-instantiated declarations.

PR c++/46527
* gcc/cp/pt.c (instantiate_decl): Propagate the template's
location to its instance.
* gcc/testsuite/g++.dg/debug/dwarf2/pr46527.C: New test.

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