public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29828] New: Fortran 2003: MIN and MAX with character variables
@ 2006-11-14 10:47 burnus at gcc dot gnu dot org
2006-11-14 14:17 ` [Bug fortran/29828] " pault at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-11-14 10:47 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]
See:
"13.7.76 MIN (A1, A2 [, A3, ...])
For arguments of character type, the result is the value that would be selected
by application of intrinsic relational operators; that is, the collating
sequence for characters with the kind type parameter of the arguments is
applied. If the selected argument is shorter than the longest argument, the 20
result is extended with blanks on the right to the length of the longest
argument."
"Example. [...] MIN (A, YY) has the value A , and
22 MIN ((/Z, A/), (/YY, B /)) has the value (/YY, A /)."
Analogously for:
"13.7.71 MAX (A1, A2 [, A3, ...])"
--
Summary: Fortran 2003: MIN and MAX with character variables
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29828
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/29828] Fortran 2003: MIN and MAX with character variables
2006-11-14 10:47 [Bug fortran/29828] New: Fortran 2003: MIN and MAX with character variables burnus at gcc dot gnu dot org
@ 2006-11-14 14:17 ` pault at gcc dot gnu dot org
2007-08-05 12:02 ` [Bug fortran/29828] [F2003] " fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-11-14 14:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pault at gcc dot gnu dot org 2006-11-14 14:17 -------
Confirmed.
Tobias,
What criterion are you chosing for the missing F2003 features? The reason that
I ask is that it is not clear to me when you stop; eg. should we have a PR for
polymorphism or for sub-modules? Maybe it would be better to have a meta-bug
for F2003 and point to a Wiki page in which we try to joggle up a priority
order?
Best regards
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-11-14 14:17:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29828
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/29828] [F2003] MIN and MAX with character variables
2006-11-14 10:47 [Bug fortran/29828] New: Fortran 2003: MIN and MAX with character variables burnus at gcc dot gnu dot org
2006-11-14 14:17 ` [Bug fortran/29828] " pault at gcc dot gnu dot org
@ 2007-08-05 12:02 ` fxcoudert at gcc dot gnu dot org
2007-08-06 20:47 ` fxcoudert at gcc dot gnu dot org
2007-08-06 20:49 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-05 12:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-08-05 12:02 -------
Patch submitted for review:
http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00269.html
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2007-
| |08/msg00269.html
Status|NEW |ASSIGNED
Keywords| |patch
Last reconfirmed|2006-11-14 14:17:15 |2007-08-05 12:02:03
date| |
Summary|Fortran 2003: MIN and MAX |[F2003] MIN and MAX with
|with character variables |character variables
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29828
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/29828] [F2003] MIN and MAX with character variables
2006-11-14 10:47 [Bug fortran/29828] New: Fortran 2003: MIN and MAX with character variables burnus at gcc dot gnu dot org
2006-11-14 14:17 ` [Bug fortran/29828] " pault at gcc dot gnu dot org
2007-08-05 12:02 ` [Bug fortran/29828] [F2003] " fxcoudert at gcc dot gnu dot org
@ 2007-08-06 20:47 ` fxcoudert at gcc dot gnu dot org
2007-08-06 20:49 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-06 20:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-08-06 20:47 -------
Subject: Bug 29828
Author: fxcoudert
Date: Mon Aug 6 20:47:17 2007
New Revision: 127252
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127252
Log:
PR fortran/29828
* trans.h (gfor_fndecl_string_minmax): New prototype.
* trans-decl.c (gfor_fndecl_string_minmax): New variable.
(gfc_build_intrinsic_function_decls): Create gfor_fndecl_string_minmax.
* check.c (gfc_check_min_max): Allow for character arguments.
* trans-intrinsic.c (gfc_conv_intrinsic_minmax_char): New function.
(gfc_conv_intrinsic_function): Add special case for MIN and MAX
intrinsics with character arguments.
* simplify.c (simplify_min_max): Add simplification for character
arguments.
* intrinsics/string_intrinsics.c (string_minmax): New function
and prototype.
* gfortran.map (GFORTRAN_1.0): Add _gfortran_string_minmax
* gfortran.dg/minmax_char_1.f90: New test.
* gfortran.dg/minmax_char_2.f90: New test.
* gfortran.dg/min_max_optional_4.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/min_max_optional_4.f90
trunk/gcc/testsuite/gfortran.dg/minmax_char_1.f90
trunk/gcc/testsuite/gfortran.dg/minmax_char_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/check.c
trunk/gcc/fortran/simplify.c
trunk/gcc/fortran/trans-decl.c
trunk/gcc/fortran/trans-intrinsic.c
trunk/gcc/fortran/trans.h
trunk/gcc/testsuite/ChangeLog
trunk/libgfortran/ChangeLog
trunk/libgfortran/gfortran.map
trunk/libgfortran/intrinsics/string_intrinsics.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29828
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/29828] [F2003] MIN and MAX with character variables
2006-11-14 10:47 [Bug fortran/29828] New: Fortran 2003: MIN and MAX with character variables burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-08-06 20:47 ` fxcoudert at gcc dot gnu dot org
@ 2007-08-06 20:49 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-06 20:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-08-06 20:49 -------
Fixed.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29828
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-08-06 20:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-14 10:47 [Bug fortran/29828] New: Fortran 2003: MIN and MAX with character variables burnus at gcc dot gnu dot org
2006-11-14 14:17 ` [Bug fortran/29828] " pault at gcc dot gnu dot org
2007-08-05 12:02 ` [Bug fortran/29828] [F2003] " fxcoudert at gcc dot gnu dot org
2007-08-06 20:47 ` fxcoudert at gcc dot gnu dot org
2007-08-06 20:49 ` fxcoudert at gcc dot gnu dot 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).