public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34771]  New: Parenthesis around character variables: No expression
@ 2008-01-13 16:26 burnus at gcc dot gnu dot org
  2008-11-10  6:53 ` [Bug fortran/34771] [4.3 only] " pault at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-01-13 16:26 UTC (permalink / raw)
  To: gcc-bugs

(c) and c
are regarded as the same for character variables; for other types (z) and z are
not the same.

gfc_get_parentheses (gfc_expr *e)
{
  gfc_expr *e2;

  /* This is a temporary fix, awaiting the patch for various
     other character problems.  The resolution and translation
     of substrings and concatenations are so kludged up that
     putting parentheses around them breaks everything.  */
  if (e->ts.type == BT_CHARACTER && e->ref)
    return e;

Test case:

subroutine a(c)
  character :: c(*)
  call b((c))
contains
  subroutine b(y)
    character :: y(*)
  end subroutine b
end subroutine

Due to the parenthesis, it should print:
"Error: The upper bound in the last dimension must appear in the reference to
the assumed size array"

(Error messages needs patch for PR 34665.)


-- 
           Summary: Parenthesis around character variables: No expression
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          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=34771


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/34771] [4.3 only] Parenthesis around character variables: No expression
  2008-01-13 16:26 [Bug fortran/34771] New: Parenthesis around character variables: No expression burnus at gcc dot gnu dot org
@ 2008-11-10  6:53 ` pault at gcc dot gnu dot org
  2009-01-03 22:27 ` dfranke at gcc dot gnu dot org
  2009-08-15  2:03 ` jvdelisle at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pault at gcc dot gnu dot org @ 2008-11-10  6:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pault at gcc dot gnu dot org  2008-11-10 06:52 -------
Tobias,

> Due to the parenthesis, it should print:
> "Error: The upper bound in the last dimension must appear in the reference to
> the assumed size array"
> 
> (Error messages needs patch for PR 34665.)
>

This is, of course, fixed (GNU Fortran (GCC) version 4.4.0 20081109). What do
you want to do with 4.3??  If I remove the offedning part of
gfc_get_parentheses in 4.3.3 20081108 (prerelease), it bootstrap and regtests
OK.  Further, this bug is gone:-)

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         |2008-11-10 06:52:36
               date|                            |
            Summary|Parenthesis around character|[4.3 only] Parenthesis
                   |variables: No expression    |around character variables:
                   |                            |No expression


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34771


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/34771] [4.3 only] Parenthesis around character variables: No expression
  2008-01-13 16:26 [Bug fortran/34771] New: Parenthesis around character variables: No expression burnus at gcc dot gnu dot org
  2008-11-10  6:53 ` [Bug fortran/34771] [4.3 only] " pault at gcc dot gnu dot org
@ 2009-01-03 22:27 ` dfranke at gcc dot gnu dot org
  2009-08-15  2:03 ` jvdelisle at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-01-03 22:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dfranke at gcc dot gnu dot org  2009-01-03 22:26 -------
Ping?


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34771


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/34771] [4.3 only] Parenthesis around character variables: No expression
  2008-01-13 16:26 [Bug fortran/34771] New: Parenthesis around character variables: No expression burnus at gcc dot gnu dot org
  2008-11-10  6:53 ` [Bug fortran/34771] [4.3 only] " pault at gcc dot gnu dot org
  2009-01-03 22:27 ` dfranke at gcc dot gnu dot org
@ 2009-08-15  2:03 ` jvdelisle at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-08-15  2:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2009-08-15 02:03 -------
I think we have moved past this and close it.  4.3 is regressions only.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34771


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-15  2:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-13 16:26 [Bug fortran/34771] New: Parenthesis around character variables: No expression burnus at gcc dot gnu dot org
2008-11-10  6:53 ` [Bug fortran/34771] [4.3 only] " pault at gcc dot gnu dot org
2009-01-03 22:27 ` dfranke at gcc dot gnu dot org
2009-08-15  2:03 ` jvdelisle 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).