Propagate the source location from a template function's definition to
authorJeffrey Yasskin <jyasskin@google.com>
Wed, 24 Nov 2010 00:24:54 +0000 (00:24 +0000)
committerJeffrey Yasskin <jyasskin@gcc.gnu.org>
Wed, 24 Nov 2010 00:24:54 +0000 (00:24 +0000)
commit3862bc3a55766907dbd1518e9f153abb34eb6785
tree994a017754e21158f9b38cf8a7a3e9da2fd960cd
parent9959d57239b896ff602cb23044d7a78de83813bb
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.

From-SVN: r167104
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/pr46527.C [new file with mode: 0644]