public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch, fortran, committed] Fill in location in build_loc_call
@ 2016-11-06 21:30 Thomas Koenig
  0 siblings, 0 replies; only message in thread
From: Thomas Koenig @ 2016-11-06 21:30 UTC (permalink / raw)
  To: fortran, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

Hello world,

I have committed the attached patch as obvious and simple.
No test case because I don't have one :-)

I am planning some more work on the PR tracking these issues,
PR 78226.

Regards

	Thomas

2016-11-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/78226
	resolve.c (build_loc_call): Add location to return value.

[-- Attachment #2: p1.diff --]
[-- Type: text/x-patch, Size: 464 bytes --]

Index: resolve.c
===================================================================
--- resolve.c	(Revision 241747)
+++ resolve.c	(Arbeitskopie)
@@ -8496,6 +8496,7 @@ build_loc_call (gfc_expr *sym_expr)
   loc_call->value.function.isym = gfc_intrinsic_function_by_id (GFC_ISYM_LOC);
   loc_call->value.function.actual = gfc_get_actual_arglist ();
   loc_call->value.function.actual->expr = sym_expr;
+  loc_call->where = sym_expr->where;
   return loc_call;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-06 21:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-06 21:30 [patch, fortran, committed] Fill in location in build_loc_call Thomas Koenig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).