This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r176845 - in /trunk: gcc/cp/ChangeLog gcc/cp/pt...
- From: jyasskin at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Wed, 27 Jul 2011 18:38:49 -0000
- Subject: r176845 - in /trunk: gcc/cp/ChangeLog gcc/cp/pt...
Author: jyasskin
Date: Wed Jul 27 18:38:48 2011
New Revision: 176845
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176845
Log:
Propagate the source location of a template's function_decl to the
template_decl built out of it. Without this, specializations
generated before the template was defined get the location of the
closing ')' instead of the location of the template's name, which can
produce inconsistent locations between translation units, which makes
gold's ODR checker unhappy.
* gcc/cp/pt.c (build_template_decl): Copy the function_decl's source
location to the new template_decl.
* gcc/testsuite/g++.old-deja/g++.pt/crash60.C: Updated.
* libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Updated.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc
Changes in other areas also in this revision:
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.old-deja/g++.pt/crash60.C