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

--- Comment #2 from Jeffrey Yasskin <jyasskin at gcc dot gnu.org> 2010-11-24 
00:25:01 UTC ---
Author: jyasskin
Date: Wed Nov 24 00:24:54 2010
New Revision: 167104

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167104
Log:
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.


Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/pr46527.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to