Commit 7c010e27 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 17c6c56b
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
......
......@@ -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
......
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.
......
// PR c++/68760
// { dg-do compile }
// { dg-options "-fdump-ipa-cgraph" }
struct A { A (); } a;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment