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]

[patch] Fix for PR44641: wrong locations of generated functions


Here's a fix for PR44641. The tests are a superset of the patch at
http://gcc.gnu.org/ml/gcc-patches/2010-07/msg01533.html. I ran
check-g++ on Linux and the new tests on Darwin.


gcc/cp/ChangeLog:
2010-07-19  Jeffrey Yasskin  <jyasskin@google.com>

        * pt.c (instantiate_class_template): Propagate the template's
location to its instance.

gcc/testsuite/ChangeLog:
2010-07-19  Jeffrey Yasskin  <jyasskin@google.com>

        * lib/scanasm.exp (dg-function-on-line): Test that a function
is defined on the current line.
        * g++.dg/debug/dwarf2/lineno-simple1.C: New. Line number sanity test.
        * g++.dg/debug/dwarf2/pr44641.C: New.

Attachment: pr44641.patch
Description: Binary data


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