pt.c (tsubst_default_argument): Indicate where the default argument is being instanti...
authorJason Merrill <jason@redhat.com>
Sat, 25 Aug 2012 02:27:27 +0000 (22:27 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 25 Aug 2012 02:27:27 +0000 (22:27 -0400)
commit03b8c9bf9ac96c4b8d811f7432e013f2ff8f16f1
tree8aef523db50ce06fe138170b3676cd1a3c09bc8a
parentb21deb041a6cedc0cfa3414b46eba3b54966776f
pt.c (tsubst_default_argument): Indicate where the default argument is being instantiated for.

* 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.

From-SVN: r190662
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