Hi, The included testcase in the patch demonstrates the bug, which is that the last source line of a template function was not propagated correctly to template function instances, leading to all template functions to report wrong coverage count for the implicit "return". Note that the patch is supposed to be applied on top of my previous patch: http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01953.html (Please consider this email as another ping for that patch as well) The bootstrap is done, and regtest is under way. If all tests look clean, OK for mainline ? gcc/testsuite/ChangeLog: 2007-08-06 Seongbae Park * g++.dg/gcov/gcov-5.C: New test. gcc/cp/ChangeLog: 2007-08-06 Seongbae Park * pt.c (instantiate_decl): Set input_location for the function end. -- #pragma ident "Seongbae Park, compiler, http://seongbae.blogspot.com"