aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-08-24 22:27:27 -0400
committerJason Merrill <jason@gcc.gnu.org>2012-08-24 22:27:27 -0400
commit03b8c9bf9ac96c4b8d811f7432e013f2ff8f16f1 (patch)
tree8aef523db50ce06fe138170b3676cd1a3c09bc8a /libstdc++-v3
parentb21deb041a6cedc0cfa3414b46eba3b54966776f (diff)
downloadgcc-03b8c9bf9ac96c4b8d811f7432e013f2ff8f16f1.zip
gcc-03b8c9bf9ac96c4b8d811f7432e013f2ff8f16f1.tar.gz
gcc-03b8c9bf9ac96c4b8d811f7432e013f2ff8f16f1.tar.bz2
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/testsuite/20_util/bind/ref_neg.cc8
-rw-r--r--libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc2
2 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc b/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
index fa21231..4534d1d 100644
--- a/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
@@ -30,10 +30,10 @@ void test01()
{
const int dummy = 0;
std::bind(&inc, _1)(0); // { dg-error "no match" }
- // { dg-error "rvalue|const" "" { target *-*-* } 1206 }
- // { dg-error "rvalue|const" "" { target *-*-* } 1219 }
- // { dg-error "rvalue|const" "" { target *-*-* } 1233 }
- // { dg-error "rvalue|const" "" { target *-*-* } 1247 }
+ // { dg-error "rvalue|const" "" { target *-*-* } 1207 }
+ // { dg-error "rvalue|const" "" { target *-*-* } 1221 }
+ // { dg-error "rvalue|const" "" { target *-*-* } 1235 }
+ // { dg-error "rvalue|const" "" { target *-*-* } 1249 }
std::bind(&inc, std::ref(dummy))(); // { dg-error "no match" }
}
diff --git a/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc b/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc
index a6881dbc..e5916c2 100644
--- a/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc
@@ -51,5 +51,5 @@ test04()
// { dg-error "required from here" "" { target *-*-* } 46 }
// { dg-error "denominator cannot be zero" "" { target *-*-* } 265 }
// { dg-error "out of range" "" { target *-*-* } 266 }
-// { dg-error "overflow in constant expression" "" { target *-*-* } 62 }
+// { dg-error "overflow in constant expression" "" { target *-*-* } 61 }
// { dg-prune-output "not a member" }