public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic
[not found] <bug-67277-4@http.gcc.gnu.org/bugzilla/>
@ 2015-08-19 15:34 ` mikael at gcc dot gnu.org
2015-08-19 15:44 ` mikael at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: mikael at gcc dot gnu.org @ 2015-08-19 15:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277
--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> ---
Created attachment 36215
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36215&action=edit
Draft patch, untested, currently bootstrapping
This patch adds a gfc_abstract_symbol class to abstract away the differences
between gfc_symbol and gfc_intrinsic_symbol.
Then the procedure symbol can be abstracted to a gfc_abstract_symbol, even if
it is intrinsic.
The change in symbol.c is necessary, otherwise the vptr is not set. I hope it
works that way.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic
[not found] <bug-67277-4@http.gcc.gnu.org/bugzilla/>
2015-08-19 15:34 ` [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic mikael at gcc dot gnu.org
@ 2015-08-19 15:44 ` mikael at gcc dot gnu.org
2015-08-29 13:30 ` dominiq at lps dot ens.fr
` (3 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: mikael at gcc dot gnu.org @ 2015-08-19 15:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277
--- Comment #2 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to Mikael Morin from comment #1)
> I hope it works that way.
Nope, it doesn't. :-(
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic
[not found] <bug-67277-4@http.gcc.gnu.org/bugzilla/>
2015-08-19 15:34 ` [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic mikael at gcc dot gnu.org
2015-08-19 15:44 ` mikael at gcc dot gnu.org
@ 2015-08-29 13:30 ` dominiq at lps dot ens.fr
2024-01-13 14:29 ` anlauf at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-08-29 13:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-08-29
Ever confirmed|0 |1
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 4.8 up to trunk (6.0).
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic
[not found] <bug-67277-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2015-08-29 13:30 ` dominiq at lps dot ens.fr
@ 2024-01-13 14:29 ` anlauf at gcc dot gnu.org
2024-01-13 22:00 ` cvs-commit at gcc dot gnu.org
2024-01-18 21:44 ` cvs-commit at gcc dot gnu.org
5 siblings, 0 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2024-01-13 14:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #7 from anlauf at gcc dot gnu.org ---
Created attachment 57073
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57073&action=edit
Patch for the ISFHTC optional SIZE argument
This patch addresses a bug when an optional dummy argument is passed as SIZE.
There is a separate, general issue with passing optional arguments to
elemental procedures, see PR113377.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic
[not found] <bug-67277-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2024-01-13 14:29 ` anlauf at gcc dot gnu.org
@ 2024-01-13 22:00 ` cvs-commit at gcc dot gnu.org
2024-01-18 21:44 ` cvs-commit at gcc dot gnu.org
5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-13 22:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:20da56165273c8814b3c53e6d71549ba6a37e0cd
commit r14-7228-g20da56165273c8814b3c53e6d71549ba6a37e0cd
Author: Harald Anlauf <anlauf@gmx.de>
Date: Sat Jan 13 22:00:21 2024 +0100
Fortran: intrinsic ISHFTC and missing optional argument SIZE [PR67277]
gcc/fortran/ChangeLog:
PR fortran/67277
* trans-intrinsic.cc (gfc_conv_intrinsic_ishftc): Handle optional
dummy argument for SIZE passed to ISHFTC. Set default value to
BIT_SIZE(I) when missing.
gcc/testsuite/ChangeLog:
PR fortran/67277
* gfortran.dg/ishftc_optional_size_1.f90: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic
[not found] <bug-67277-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2024-01-13 22:00 ` cvs-commit at gcc dot gnu.org
@ 2024-01-18 21:44 ` cvs-commit at gcc dot gnu.org
5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-18 21:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:09301f083d86b04753d93e84dc1b8a313285e40a
commit r13-8239-g09301f083d86b04753d93e84dc1b8a313285e40a
Author: Harald Anlauf <anlauf@gmx.de>
Date: Sat Jan 13 22:00:21 2024 +0100
Fortran: intrinsic ISHFTC and missing optional argument SIZE [PR67277]
gcc/fortran/ChangeLog:
PR fortran/67277
* trans-intrinsic.cc (gfc_conv_intrinsic_ishftc): Handle optional
dummy argument for SIZE passed to ISHFTC. Set default value to
BIT_SIZE(I) when missing.
gcc/testsuite/ChangeLog:
PR fortran/67277
* gfortran.dg/ishftc_optional_size_1.f90: New test.
(cherry picked from commit 20da56165273c8814b3c53e6d71549ba6a37e0cd)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-01-18 21:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-67277-4@http.gcc.gnu.org/bugzilla/>
2015-08-19 15:34 ` [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic mikael at gcc dot gnu.org
2015-08-19 15:44 ` mikael at gcc dot gnu.org
2015-08-29 13:30 ` dominiq at lps dot ens.fr
2024-01-13 14:29 ` anlauf at gcc dot gnu.org
2024-01-13 22:00 ` cvs-commit at gcc dot gnu.org
2024-01-18 21:44 ` cvs-commit 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).