* pt.c (tsubst_default_argument): Indicate where the default
commit8d631348bd8a359316df150e226678692bcaa64c
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Aug 2012 02:27:27 +0000 (25 02:27 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Aug 2012 02:27:27 +0000 (25 02:27 +0000)
tree8aef523db50ce06fe138170b3676cd1a3c09bc8a
parentf6677f680f99afee76f778f597b6478023e010c2
* pt.c (tsubst_default_argument): Indicate where the default
argument is being instantiated for.
(tsubst_expr): Restore previous location.
(tsubst_copy_and_build): Set and restore location.
* call.c (build_new_method_call_1): Remember location of call.
* semantics.c (finish_call_expr): Here too.
* parser.c (cp_parser_omp_for_loop): Remember the location of the
increment expression.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190662 138bc75d-0d04-0410-961f-82ee72b054a4
18 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/decltype28.C
gcc/testsuite/g++.dg/cpp0x/decltype29.C
gcc/testsuite/g++.dg/cpp0x/decltype32.C
gcc/testsuite/g++.dg/cpp0x/initlist-deduce.C
gcc/testsuite/g++.dg/cpp0x/overload2.C
gcc/testsuite/g++.dg/cpp0x/sfinae24.C
gcc/testsuite/g++.dg/gomp/for-19.C
gcc/testsuite/g++.dg/overload/defarg1.C
gcc/testsuite/g++.dg/parse/crash40.C
gcc/testsuite/g++.dg/template/crash108.C
gcc/testsuite/g++.dg/template/crash89.C
libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc