public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13910] New: [g77]  Cannot initialize variables with declation as allowed by g77
@ 2004-01-29  1:51 bdavis9659 at comcast dot net
  2004-01-29  1:54 ` [Bug fortran/13910] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-01-29  1:51 UTC (permalink / raw)
  To: gcc-bugs

[bdavis@localhost bin]$ /usr/local/bin/gfortran example2.f
 In file example2.f:1

        LOGICAL LOAD_FROM_SNAP /.FALSE./
                             1
 Error: Syntax error in data declaration at (1)
 [bdavis@localhost bin]$ cat example2.f
        LOGICAL LOAD_FROM_SNAP /.FALSE./
        END

This style is used by f77 programmers and works in g77.


http://gcc.gnu.org/ml/fortran/2004-01/msg00129.html

-- 
           Summary: [g77]  Cannot initialize variables with declation as
                    allowed by g77
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bdavis9659 at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/13910] [g77]  Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
@ 2004-01-29  1:54 ` pinskia at gcc dot gnu dot org
  2004-01-29  1:55 ` [Bug fortran/13910] [gfortran] " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29  1:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-29 01:54 -------
*** Bug 13911 has been marked as a duplicate of this bug. ***

-- 


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


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

* [Bug fortran/13910] [gfortran]  Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
  2004-01-29  1:54 ` [Bug fortran/13910] " pinskia at gcc dot gnu dot org
@ 2004-01-29  1:55 ` pinskia at gcc dot gnu dot org
  2004-01-29  7:10 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29  1:55 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[g77]  Cannot initialize    |[gfortran]  Cannot
                   |variables with declation as |initialize variables with
                   |allowed by g77              |declation as allowed by g77
   Target Milestone|---                         |tree-ssa


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


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

* [Bug fortran/13910] [gfortran]  Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
  2004-01-29  1:54 ` [Bug fortran/13910] " pinskia at gcc dot gnu dot org
  2004-01-29  1:55 ` [Bug fortran/13910] [gfortran] " pinskia at gcc dot gnu dot org
@ 2004-01-29  7:10 ` pinskia at gcc dot gnu dot org
  2004-04-22 13:00 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29  7:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-29 07:10 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-29 07:10:29
               date|                            |


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


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

* [Bug fortran/13910] [gfortran]  Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (2 preceding siblings ...)
  2004-01-29  7:10 ` pinskia at gcc dot gnu dot org
@ 2004-04-22 13:00 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-12 17:30 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-04-22 13:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2004-04-22 12:32 -------
I have a patch for this. It will have to wait for my copyright assignment, though.

-- 


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


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

* [Bug fortran/13910] [gfortran]  Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (3 preceding siblings ...)
  2004-04-22 13:00 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-12 17:30 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-24 15:55 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-05-12 17:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2004-05-11 19:44 -------
Patch here: http://gcc.gnu.org/ml/fortran/2004-05/msg00112.html

-- 


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


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

* [Bug fortran/13910] [gfortran]  Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (4 preceding siblings ...)
  2004-05-12 17:30 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-24 15:55 ` pinskia at gcc dot gnu dot org
  2004-06-02 12:30 ` tobi at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 15:55 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug fortran/13910] [gfortran]  Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (5 preceding siblings ...)
  2004-05-24 15:55 ` pinskia at gcc dot gnu dot org
@ 2004-06-02 12:30 ` tobi at gcc dot gnu dot org
  2004-07-12  4:21 ` [Bug fortran/13910] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-06-02 12:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-06-02 12:30 -------
As Paul pointed out in the follow-up to my patch, this calls for a more general
approach, essentially parsing this as if it were part of a data statement, i.e.
   INTEGER i
   DATA i /2/
and
   INTEGER i /2/
are essentially equivalent. This of course raises the question if
   INTEGER i(2) /2/
is valid and means
   INTEGER i(2)
   DATA i /2*2/
or if it means 
   DATA i(2) /2/
and then requires a separate declaration.

Is there any documentation for this? I didn't find it in the g77 docs.






-- 


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


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

* [Bug fortran/13910] Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (6 preceding siblings ...)
  2004-06-02 12:30 ` tobi at gcc dot gnu dot org
@ 2004-07-12  4:21 ` pinskia at gcc dot gnu dot org
  2004-07-14  3:23 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-12  4:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-12 04:21 -------
*** Bug 16483 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olchansk at panix dot com


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


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

* [Bug fortran/13910] Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (7 preceding siblings ...)
  2004-07-12  4:21 ` [Bug fortran/13910] " pinskia at gcc dot gnu dot org
@ 2004-07-14  3:23 ` pinskia at gcc dot gnu dot org
  2004-08-29 15:25 ` tobi at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-14  3:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-14 03:23 -------
*** Bug 16509 has been marked as a duplicate of this bug. ***

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


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


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

* [Bug fortran/13910] Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (8 preceding siblings ...)
  2004-07-14  3:23 ` pinskia at gcc dot gnu dot org
@ 2004-08-29 15:25 ` tobi at gcc dot gnu dot org
  2004-08-29 16:58 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-08-29 15:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-08-29 15:25 -------
New patch here: http://gcc.gnu.org/ml/fortran/2004-08/msg00281.html

-- 


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


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

* [Bug fortran/13910] Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (9 preceding siblings ...)
  2004-08-29 15:25 ` tobi at gcc dot gnu dot org
@ 2004-08-29 16:58 ` cvs-commit at gcc dot gnu dot org
  2004-08-29 17:01 ` tobi at gcc dot gnu dot org
  2004-08-31 20:58 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-29 16:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-29 16:58 -------
Subject: Bug 13910

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tobi@gcc.gnu.org	2004-08-29 16:58:39

Modified files:
	gcc/fortran    : ChangeLog decl.c expr.c gfortran.h 
	                 gfortran.texi match.c match.h symbol.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: oldstyle_1.f90 

Log message:
	fortran/
	PR fortran/13910
	* decl.c (free_variable, free_value, gfc_free_data, var_list,
	var_element, top_var_list, match_data_constant, top_val_list,
	gfc_match_data): Move here from match.c.
	(match_old_style_init): New function.
	(variable_decl): Match old-style initialization.
	* expr.c (gfc_get_variable_expr): New function.
	* gfortran.h (gfc_get_variable_expr): Add prototype.
	* gfortran.texi: Start documentation for supported extensions.
	* match.c: Remove the functions moved to decl.c.
	* match.h (gfc_match_data): Move prototype to under decl.c.
	* symbol.c (gfc_find_sym_tree, gfc_find_symbol): Add/correct
	comments.
	
	testsuite/
	PR fortran/13910
	* gfortran.dg/oldstyle_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.184&r2=1.185
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/decl.c.diff?cvsroot=gcc&r1=1.21&r2=1.22
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/expr.c.diff?cvsroot=gcc&r1=1.15&r2=1.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.h.diff?cvsroot=gcc&r1=1.31&r2=1.32
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.texi.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/match.c.diff?cvsroot=gcc&r1=1.22&r2=1.23
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/match.h.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/symbol.c.diff?cvsroot=gcc&r1=1.14&r2=1.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4205&r2=1.4206
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/oldstyle_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug fortran/13910] Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (10 preceding siblings ...)
  2004-08-29 16:58 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-29 17:01 ` tobi at gcc dot gnu dot org
  2004-08-31 20:58 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-08-29 17:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-08-29 17:01 -------
Fixed.

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


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


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

* [Bug fortran/13910] Cannot initialize variables with declation as allowed by g77
  2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
                   ` (11 preceding siblings ...)
  2004-08-29 17:01 ` tobi at gcc dot gnu dot org
@ 2004-08-31 20:58 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-31 20:58 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

end of thread, other threads:[~2004-08-31 20:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-29  1:51 [Bug fortran/13910] New: [g77] Cannot initialize variables with declation as allowed by g77 bdavis9659 at comcast dot net
2004-01-29  1:54 ` [Bug fortran/13910] " pinskia at gcc dot gnu dot org
2004-01-29  1:55 ` [Bug fortran/13910] [gfortran] " pinskia at gcc dot gnu dot org
2004-01-29  7:10 ` pinskia at gcc dot gnu dot org
2004-04-22 13:00 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-12 17:30 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-24 15:55 ` pinskia at gcc dot gnu dot org
2004-06-02 12:30 ` tobi at gcc dot gnu dot org
2004-07-12  4:21 ` [Bug fortran/13910] " pinskia at gcc dot gnu dot org
2004-07-14  3:23 ` pinskia at gcc dot gnu dot org
2004-08-29 15:25 ` tobi at gcc dot gnu dot org
2004-08-29 16:58 ` cvs-commit at gcc dot gnu dot org
2004-08-29 17:01 ` tobi at gcc dot gnu dot org
2004-08-31 20:58 ` 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).