public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5594] Only return after resetting type_param_spec_list
@ 2021-11-30 8:17 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-11-30 8:17 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b962469a01b017ae2e7ef2865a40e37094ceec4b
commit r12-5594-gb962469a01b017ae2e7ef2865a40e37094ceec4b
Author: Richard Biener <rguenther@suse.de>
Date: Mon Nov 29 12:26:39 2021 +0100
Only return after resetting type_param_spec_list
This fixes an appearant mistake in gfc_insert_parameter_exprs.
2021-11-29 Richard Biener <rguenther@suse.de>
gcc/fortran/
* decl.c (gfc_insert_parameter_exprs): Only return after
resetting type_param_spec_list.
Diff:
---
gcc/fortran/decl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index c0fec90e3e0..4971638f9b6 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -3733,9 +3733,9 @@ gfc_insert_parameter_exprs (gfc_expr *e, gfc_actual_arglist *param_list)
{
gfc_actual_arglist *old_param_spec_list = type_param_spec_list;
type_param_spec_list = param_list;
- return gfc_traverse_expr (e, NULL, &insert_parameter_exprs, 1);
- type_param_spec_list = NULL;
+ bool res = gfc_traverse_expr (e, NULL, &insert_parameter_exprs, 1);
type_param_spec_list = old_param_spec_list;
+ return res;
}
/* Determines the instance of a parameterized derived type to be used by
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-30 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 8:17 [gcc r12-5594] Only return after resetting type_param_spec_list Richard Biener
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).