public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25423]  New: Error with nested where statements
@ 2005-12-15  2:11 schnetter at aei dot mpg dot de
  2005-12-15  4:45 ` [Bug fortran/25423] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-12-15  2:11 UTC (permalink / raw)
  To: gcc-bugs

The source code

subroutine sub (i, j)
  implicit none
  logical i(10), j(10)
  where (i)
     where (j)
     end where
  end where
end subroutine sub

leads to the error message

$ ~/gcc/bin/gfortran -c where.f90 
 In file where.f90:6

     end where
             1
Error: Unsupported statement inside WHERE at (1)

when compiled with

$ ~/gcc/bin/gfortran --version
GNU Fortran 95 (GCC) 4.2.0 20051129 (experimental)



The end where statement should not lead to an error message; end where
statements are allowed in where clauses.


-- 
           Summary: Error with nested where statements
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schnetter at aei dot mpg dot de
 GCC build triplet: powerpc-apple-darwin8.3.0
  GCC host triplet: powerpc-apple-darwin8.3.0
GCC target triplet: powerpc-apple-darwin8.3.0


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


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

* [Bug fortran/25423] Error with nested where statements
  2005-12-15  2:11 [Bug fortran/25423] New: Error with nested where statements schnetter at aei dot mpg dot de
@ 2005-12-15  4:45 ` pinskia at gcc dot gnu dot org
  2005-12-20 21:26 ` eedelman at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-15  4:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-12-15 04:45 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2005-12-15 04:45:06
               date|                            |


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


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

* [Bug fortran/25423] Error with nested where statements
  2005-12-15  2:11 [Bug fortran/25423] New: Error with nested where statements schnetter at aei dot mpg dot de
  2005-12-15  4:45 ` [Bug fortran/25423] " pinskia at gcc dot gnu dot org
@ 2005-12-20 21:26 ` eedelman at gcc dot gnu dot org
  2005-12-21 11:58 ` eedelman at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-12-20 21:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from eedelman at gcc dot gnu dot org  2005-12-20 21:26 -------
Working on a patch.


-- 

eedelman at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/25423] Error with nested where statements
  2005-12-15  2:11 [Bug fortran/25423] New: Error with nested where statements schnetter at aei dot mpg dot de
  2005-12-15  4:45 ` [Bug fortran/25423] " pinskia at gcc dot gnu dot org
  2005-12-20 21:26 ` eedelman at gcc dot gnu dot org
@ 2005-12-21 11:58 ` eedelman at gcc dot gnu dot org
  2005-12-21 12:08 ` eedelman at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-12-21 11:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from eedelman at gcc dot gnu dot org  2005-12-21 11:58 -------
Subject: Bug 25423

Author: eedelman
Date: Wed Dec 21 11:58:09 2005
New Revision: 108902

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108902
Log:
fortran/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        * parse.c (parse_where_block): break instead of "fall
         through" after parsing nested WHERE construct.


testsuite/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        gfortran.dg/where_nested_1.f90: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/where_nested_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/parse.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/25423] Error with nested where statements
  2005-12-15  2:11 [Bug fortran/25423] New: Error with nested where statements schnetter at aei dot mpg dot de
                   ` (2 preceding siblings ...)
  2005-12-21 11:58 ` eedelman at gcc dot gnu dot org
@ 2005-12-21 12:08 ` eedelman at gcc dot gnu dot org
  2005-12-21 12:12 ` eedelman at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-12-21 12:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from eedelman at gcc dot gnu dot org  2005-12-21 12:08 -------
Subject: Bug 25423

Author: eedelman
Date: Wed Dec 21 12:07:58 2005
New Revision: 108903

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108903
Log:
fortran/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        * parse.c (parse_where_block): break instead of "fall
        through" after parsing nested WHERE construct.

testsuite/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        gfortran.dg/where_nested_1.f90: New.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/where_nested_1.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/parse.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/25423] Error with nested where statements
  2005-12-15  2:11 [Bug fortran/25423] New: Error with nested where statements schnetter at aei dot mpg dot de
                   ` (3 preceding siblings ...)
  2005-12-21 12:08 ` eedelman at gcc dot gnu dot org
@ 2005-12-21 12:12 ` eedelman at gcc dot gnu dot org
  2005-12-21 16:17 ` eedelman at gcc dot gnu dot org
  2006-01-01  5:30 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-12-21 12:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from eedelman at gcc dot gnu dot org  2005-12-21 12:12 -------
Subject: Bug 25423

Author: eedelman
Date: Wed Dec 21 12:12:52 2005
New Revision: 108904

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108904
Log:
fortran/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        * parse.c (parse_where_block): break instead of "fall
        through" after parsing nested WHERE construct.

testsuite/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        gfortran.dg/where_nested_1.f90: New.


Added:
    branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/where_nested_1.f90
Modified:
    branches/gcc-4_0-branch/gcc/fortran/ChangeLog
    branches/gcc-4_0-branch/gcc/fortran/parse.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/25423] Error with nested where statements
  2005-12-15  2:11 [Bug fortran/25423] New: Error with nested where statements schnetter at aei dot mpg dot de
                   ` (4 preceding siblings ...)
  2005-12-21 12:12 ` eedelman at gcc dot gnu dot org
@ 2005-12-21 16:17 ` eedelman at gcc dot gnu dot org
  2006-01-01  5:30 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-12-21 16:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from eedelman at gcc dot gnu dot org  2005-12-21 16:17 -------
Fixed on trunk, 4.1 and 4.0


-- 

eedelman at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/25423] Error with nested where statements
  2005-12-15  2:11 [Bug fortran/25423] New: Error with nested where statements schnetter at aei dot mpg dot de
                   ` (5 preceding siblings ...)
  2005-12-21 16:17 ` eedelman at gcc dot gnu dot org
@ 2006-01-01  5:30 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-01  5:30 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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



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

end of thread, other threads:[~2006-01-01  5:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-15  2:11 [Bug fortran/25423] New: Error with nested where statements schnetter at aei dot mpg dot de
2005-12-15  4:45 ` [Bug fortran/25423] " pinskia at gcc dot gnu dot org
2005-12-20 21:26 ` eedelman at gcc dot gnu dot org
2005-12-21 11:58 ` eedelman at gcc dot gnu dot org
2005-12-21 12:08 ` eedelman at gcc dot gnu dot org
2005-12-21 12:12 ` eedelman at gcc dot gnu dot org
2005-12-21 16:17 ` eedelman at gcc dot gnu dot org
2006-01-01  5:30 ` pinskia 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).