public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations
@ 2004-05-12 14:30 Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-12 14:32 ` [Bug fortran/15382] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-05-12 14:30 UTC (permalink / raw)
  To: gcc-bugs

The following should issue an error in the frontend:
SUBROUTINE BARY()
COMMON /A/ X
EQUIVALENCE (X,Y)
REAL :: Y = 1.
DATA X /1./
PRINT *, X, Y
END
currently it fails with a fatal error in the backend:
[tobi@marktplatz tests]$ gfortran com.f90
com.f90: In function `bary':
com.f90:16: fatal error: gfc_todo: Not Implemented: initial values for COMMON or
EQUIVALENCE
compilation terminated.
[tobi@marktplatz tests]$

-- 
           Summary: [gfortran] frontend too lenient when checking variable
                    declarations
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: Tobias dot Schlueter at physik dot uni-muenchen dot de
        ReportedBy: Tobias dot Schlueter at physik dot uni-muenchen dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/15382] [gfortran] frontend too lenient when checking variable declarations
  2004-05-12 14:30 [Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-12 14:32 ` pinskia at gcc dot gnu dot org
  2004-05-27  3:19 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-12 14:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-11 17:48 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-11 17:48:45
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug fortran/15382] [gfortran] frontend too lenient when checking variable declarations
  2004-05-12 14:30 [Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-12 14:32 ` [Bug fortran/15382] " pinskia at gcc dot gnu dot org
@ 2004-05-27  3:19 ` pinskia at gcc dot gnu dot org
  2004-09-15  3:18 ` [Bug fortran/15382] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-27  3:19 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.5.0                       |---


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


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

* [Bug fortran/15382] frontend too lenient when checking variable declarations
  2004-05-12 14:30 [Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-12 14:32 ` [Bug fortran/15382] " pinskia at gcc dot gnu dot org
  2004-05-27  3:19 ` pinskia at gcc dot gnu dot org
@ 2004-09-15  3:18 ` pinskia at gcc dot gnu dot org
  2005-01-06 14:40 ` tobi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-15  3:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-15 03:18 -------
Different error now:
pr15382.f90: In function `bary':
pr15382.f90:1: fatal error: gfc_todo: Not Implemented: Initialization of overlapping variables
compilation terminated.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-05-11 17:48:45         |2004-09-15 03:18:56
               date|                            |


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


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

* [Bug fortran/15382] frontend too lenient when checking variable declarations
  2004-05-12 14:30 [Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (2 preceding siblings ...)
  2004-09-15  3:18 ` [Bug fortran/15382] " pinskia at gcc dot gnu dot org
@ 2005-01-06 14:40 ` tobi at gcc dot gnu dot org
  2005-06-28  1:18 ` pinskia at gcc dot gnu dot org
  2005-09-12 11:07 ` tobi at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-01-06 14:40 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |19292
              nThis|                            |


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


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

* [Bug fortran/15382] frontend too lenient when checking variable declarations
  2004-05-12 14:30 [Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (3 preceding siblings ...)
  2005-01-06 14:40 ` tobi at gcc dot gnu dot org
@ 2005-06-28  1:18 ` pinskia at gcc dot gnu dot org
  2005-09-12 11:07 ` tobi at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-28  1:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|Tobias dot Schlueter at     |tobi at gcc dot gnu dot org
                   |physik dot uni-muenchen dot |
                   |de                          |
             Status|NEW                         |ASSIGNED


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


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

* [Bug fortran/15382] frontend too lenient when checking variable declarations
  2004-05-12 14:30 [Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (4 preceding siblings ...)
  2005-06-28  1:18 ` pinskia at gcc dot gnu dot org
@ 2005-09-12 11:07 ` tobi at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-09-12 11:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-09-12 11:06 -------
schluter@pcl247d:~/src/tests> ../gcc/build/gcc/f951 pr15083.f90                
 In file pr15083.f90:4

REAL :: Y = 1.
             1
Error: Initializer not allowed for COMMON variable 'y' at (1)

Execution times (seconds)
 TOTAL                 :   0.01             0.00             0.02              
 533 kB
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --disable-checking to disable checks.
schluter@pcl247d:~/src/tests> 

This was fixed by Paul Thomas' recent patches for commons and equivalences.

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


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


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

end of thread, other threads:[~2005-09-12 11:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-12 14:30 [Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-12 14:32 ` [Bug fortran/15382] " pinskia at gcc dot gnu dot org
2004-05-27  3:19 ` pinskia at gcc dot gnu dot org
2004-09-15  3:18 ` [Bug fortran/15382] " pinskia at gcc dot gnu dot org
2005-01-06 14:40 ` tobi at gcc dot gnu dot org
2005-06-28  1:18 ` pinskia at gcc dot gnu dot org
2005-09-12 11:07 ` tobi 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).