r176851 - in /branches/gcc-4_6-branch: gcc/cp/C...
jyasskin@gcc.gnu.org
jyasskin@gcc.gnu.org
Wed Jul 27 22:13:00 GMT 2011
Author: jyasskin
Date: Wed Jul 27 22:13:18 2011
New Revision: 176851
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176851
Log:
Backport r176845.
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:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/pt.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/g++.old-deja/g++.pt/crash60.C
branches/gcc-4_6-branch/libstdc++-v3/ChangeLog
branches/gcc-4_6-branch/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc
More information about the Gcc-cvs
mailing list