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
This commit is contained in:
Jakub Jelinek 2015-12-07 23:44:19 +01:00 committed by Jakub Jelinek
parent 17c6c56b90
commit 7c010e27a9
4 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-12-07 Jakub Jelinek <jakub@redhat.com>
PR c++/68760
* error.c (dump_global_iord): Use DECL_SOURCE_FILE (t)
instead of LOCATION_FILE (input_location).
2015-12-07 Ryan Burn <contact@rnburn.com>
PR c++/68683

View File

@ -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

View File

@ -1,5 +1,8 @@
2015-12-07 Jakub Jelinek <jakub@redhat.com>
PR c++/68760
* g++.dg/tree-ssa/pr68760.C: New test.
PR middle-end/66726
* g++.dg/tree-ssa/pr66726.c: Renamed to...
* g++.dg/tree-ssa/pr66726.C: ... this.

View File

@ -0,0 +1,5 @@
// PR c++/68760
// { dg-do compile }
// { dg-options "-fdump-ipa-cgraph" }
struct A { A (); } a;