public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/88688] Incorrect association in SELECT TYPE
[not found] <bug-88688-4@http.gcc.gnu.org/bugzilla/>
@ 2023-06-17 10:28 ` pault at gcc dot gnu.org
2023-06-21 16:06 ` cvs-commit at gcc dot gnu.org
2023-06-21 21:06 ` pault at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-17 10:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88688
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
CC| |pault at gcc dot gnu.org
--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
nagfor has the same behavior as ifort.
I believe that the following, which appears in F2018:19.5.1.6 applies:
"If a selector has the POINTER attribute, it shall be associated; the associate
name is associated with the target of the pointer and does not have the POINTER
attribute."
In other words, the association shall be via assignment, rather than pointer
assignment.
Changing to new.
Paul
PS Thomas, did you by any chance take this up on c.l.f?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/88688] Incorrect association in SELECT TYPE
[not found] <bug-88688-4@http.gcc.gnu.org/bugzilla/>
2023-06-17 10:28 ` [Bug fortran/88688] Incorrect association in SELECT TYPE pault at gcc dot gnu.org
@ 2023-06-21 16:06 ` cvs-commit at gcc dot gnu.org
2023-06-21 21:06 ` pault at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-21 16:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88688
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:577223aebc7acdd31e62b33c1682fe54a622ae27
commit r14-2022-g577223aebc7acdd31e62b33c1682fe54a622ae27
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Wed Jun 21 17:05:58 2023 +0100
Fortran: Fix some bugs in associate [PR87477]
2023-06-21 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/87477
PR fortran/88688
PR fortran/94380
PR fortran/107900
PR fortran/110224
* decl.cc (char_len_param_value): Fix memory leak.
(resolve_block_construct): Remove unnecessary static decls.
* expr.cc (gfc_is_ptr_fcn): New function.
(gfc_check_vardef_context): Use it to permit pointer function
result selectors to be used for associate names in variable
definition context.
* gfortran.h: Prototype for gfc_is_ptr_fcn.
* match.cc (build_associate_name): New function.
(gfc_match_select_type): Use the new function to replace inline
version and to build a new associate name for the case where
the supplied associate name is already used for that purpose.
* resolve.cc (resolve_assoc_var): Call gfc_is_ptr_fcn to allow
associate names with pointer function targets to be used in
variable definition context.
* trans-decl.cc (gfc_get_symbol_decl): Unlimited polymorphic
variables need deferred initialisation of the vptr.
(gfc_trans_deferred_vars): Do the vptr initialisation.
* trans-stmt.cc (trans_associate_var): Ensure that a pointer
associate name points to the target of the selector and not
the selector itself.
gcc/testsuite/
PR fortran/87477
PR fortran/107900
* gfortran.dg/pr107900.f90 : New test
PR fortran/110224
* gfortran.dg/pr110224.f90 : New test
PR fortran/88688
* gfortran.dg/pr88688.f90 : New test
PR fortran/94380
* gfortran.dg/pr94380.f90 : New test
PR fortran/95398
* gfortran.dg/pr95398.f90 : Set -std=f2008, bump the line
numbers in the error tests by two and change the text in two.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/88688] Incorrect association in SELECT TYPE
[not found] <bug-88688-4@http.gcc.gnu.org/bugzilla/>
2023-06-17 10:28 ` [Bug fortran/88688] Incorrect association in SELECT TYPE pault at gcc dot gnu.org
2023-06-21 16:06 ` cvs-commit at gcc dot gnu.org
@ 2023-06-21 21:06 ` pault at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-21 21:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88688
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
Fixed on trunk and closing.
I will build a composite patch for 13-branch in a few weeks.
Thanks for the report
Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-21 21:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-88688-4@http.gcc.gnu.org/bugzilla/>
2023-06-17 10:28 ` [Bug fortran/88688] Incorrect association in SELECT TYPE pault at gcc dot gnu.org
2023-06-21 16:06 ` cvs-commit at gcc dot gnu.org
2023-06-21 21:06 ` pault at gcc dot gnu.org
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).