diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-12-07 23:44:19 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-12-07 23:44:19 +0100 |
commit | 7c010e27a9e9d975ff265264ae515f7dc9feebd6 (patch) | |
tree | fec34173744c24a84668ab8115b7eb8b72f23a61 /gcc/cp/error.c | |
parent | 17c6c56b906d99b45dc5eefa5d39435188235051 (diff) | |
download | gcc-7c010e27a9e9d975ff265264ae515f7dc9feebd6.zip gcc-7c010e27a9e9d975ff265264ae515f7dc9feebd6.tar.gz gcc-7c010e27a9e9d975ff265264ae515f7dc9feebd6.tar.bz2 |
re PR c++/68760 (ICE in pp_string (pretty-print.c:909))
PR c++/68760
* error.c (dump_global_iord): Use DECL_SOURCE_FILE (t)
instead of LOCATION_FILE (input_location).
* g++.dg/tree-ssa/pr68760.C: New test.
From-SVN: r231386
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 38548c7..e0ba806 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -953,7 +953,7 @@ dump_global_iord (cxx_pretty_printer *pp, tree t) else gcc_unreachable (); - pp_printf (pp, p, LOCATION_FILE (input_location)); + pp_printf (pp, p, DECL_SOURCE_FILE (t)); } static void |