[Bug fortran/18827] ICE on assign to common variable

2005-03-15 Thread fengwang at gcc dot gnu dot org

--- Additional Comments From fengwang at gcc dot gnu dot org  2005-03-16 
00:19 ---
Fixed

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug fortran/18827] ICE on assign to common variable

2005-03-15 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Target Milestone|--- |4.0.0


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


[Bug fortran/18827] ICE on assign to common variable

2005-03-14 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
02:52 ---
Subject: Bug 18827

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 02:52:38

Modified files:
gcc/testsuite  : ChangeLog 
gcc/fortran: ChangeLog io.c match.c resolve.c trans-common.c 
 trans-stmt.c trans-io.c trans.h 
Added files:
gcc/testsuite/gfortran.dg: assign.f90 assign_2.f90 assign_3.f90 

Log message:
fortran/
2005-03-15  Feng Wang  [EMAIL PROTECTED]

PR fortran/18827
* io.c (resolve_tag): Add checking on assigned label.
(match_dt_format): Does not set symbol assign attribute.
* match.c (gfc_match_goto):Does not set symbol assign attribute.
* resolve.c (resolve_code): Add checking on assigned label.
* trans-common.c (build_field): Deals with common variable assigned
a label.
* trans-stmt.c (gfc_conv_label_variable): New function.
(gfc_trans_label_assign): Use it.
(gfc_trans_goto): Ditto.
* trans-io.c (set_string): Ditto.
* trans.h (gfc_conv_label_variable): Add prototype.
testsuite/
2005-03-15  Feng Wang  [EMAIL PROTECTED]

PR fortran/18827
* gfortran.dg/assign_2.f90: New test.
* gfortran.dg/assign_3.f90: New test.
* gfortran.dg/assign.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gccr1=1.5169r2=1.5170
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/assign.f90.diff?cvsroot=gccr1=NONEr2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/assign_2.f90.diff?cvsroot=gccr1=NONEr2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/assign_3.f90.diff?cvsroot=gccr1=NONEr2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gccr1=1.353r2=1.354
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/io.c.diff?cvsroot=gccr1=1.19r2=1.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/match.c.diff?cvsroot=gccr1=1.31r2=1.32
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gccr1=1.37r2=1.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-common.c.diff?cvsroot=gccr1=1.24r2=1.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-stmt.c.diff?cvsroot=gccr1=1.24r2=1.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-io.c.diff?cvsroot=gccr1=1.33r2=1.34
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans.h.diff?cvsroot=gccr1=1.24r2=1.25



-- 


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


[Bug fortran/18827] ICE on assign to common variable

2005-03-14 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
03:43 ---
Subject: Bug 18827

CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED]   2005-03-15 03:42:49

Modified files:
gcc/testsuite  : ChangeLog 
gcc/fortran: ChangeLog io.c match.c resolve.c trans-common.c 
 trans-stmt.c trans-io.c trans.h 
Added files:
gcc/testsuite/gfortran.dg: assign.f90 assign_2.f90 assign_3.f90 

Log message:
fortran/
2005-03-15  Feng Wang  [EMAIL PROTECTED]

PR fortran/18827
* io.c (resolve_tag): Add checking on assigned label.
(match_dt_format): Does not set symbol assign attribute.
* match.c (gfc_match_goto):Does not set symbol assign attribute.
* resolve.c (resolve_code): Add checking on assigned label.
* trans-common.c (build_field): Deals with common variable assigned
a label.
* trans-stmt.c (gfc_conv_label_variable): New function.
(gfc_trans_label_assign): Use it.
(gfc_trans_goto): Ditto.
* trans-io.c (set_string): Ditto.
* trans.h (gfc_conv_label_variable): Add prototype.
testsuite/
2005-03-15  Feng Wang  [EMAIL PROTECTED]

PR fortran/18827
* gfortran.dg/assign_2.f90: New test.
* gfortran.dg/assign_3.f90: New test.
* gfortran.dg/assign.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.5084.2.47r2=1.5084.2.48
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/assign.f90.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=NONEr2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/assign_2.f90.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=NONEr2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/assign_3.f90.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=NONEr2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.335.2.13r2=1.335.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/io.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.19r2=1.19.10.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/match.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.31r2=1.31.8.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.34.2.3r2=1.34.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-common.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.23.2.1r2=1.23.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-stmt.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.24r2=1.24.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-io.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.33r2=1.33.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans.h.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.23.2.1r2=1.23.2.2



-- 


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


[Bug fortran/18827] ICE on assign to common variable

2005-01-23 Thread wf_cs at yahoo dot com

--- Additional Comments From wf_cs at yahoo dot com  2005-01-23 11:36 
---
http://gcc.gnu.org/ml/fortran/2004-12/msg00136.html
http://gcc.gnu.org/ml/fortran/2005-01/msg00118.html

-- 


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


[Bug fortran/18827] ICE on assign to common variable

2005-01-06 Thread tobi at gcc dot gnu dot org


-- 
   What|Removed |Added

OtherBugsDependingO||19292
  nThis||


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


[Bug fortran/18827] ICE on assign to common variable

2004-12-10 Thread wf_cs at yahoo dot com

--- Additional Comments From wf_cs at yahoo dot com  2004-12-10 14:58 
---
I've fixed the first and am looking into the second. I think the second 
(variable with equivalence)is an invalid code. ifort also gives an error.

-- 


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


[Bug fortran/18827] ICE on assign to common variable

2004-12-04 Thread Thomas dot Koenig at online dot de


-- 
   What|Removed |Added

Summary|compiler segfault on assign |ICE on assign to common
   |to common variable  |variable


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


[Bug fortran/18827] ICE on assign to common variable

2004-12-04 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-04 
13:16 ---
Confirmed.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords||ice-on-valid-code
   Last reconfirmed|-00-00 00:00:00 |2004-12-04 13:16:07
   date||


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


[Bug fortran/18827] ICE on assign to common variable

2004-12-04 Thread Thomas dot Koenig at online dot de

--- Additional Comments From Thomas dot Koenig at online dot de  2004-12-04 
14:56 ---
The same bug is triggered if the assigned variable
is equivalenced:

$ cat assign4.f
  program main
  integer i
  integer j
  equivalence (i,j)
  assign 1000 to i
  goto j
 1000 continue
  end
$ gfortran assign4.f
 In file assign4.f:5

  assign 1000 to i
   1
Warning: Obsolete: ASSIGN statement at (1)
 In file assign4.f:6

  goto j
   1
Warning: Obsolete: Assigned GOTO statement at (1)
assign4.f: In function 'MAIN__':
assign4.f:5: internal compiler error: tree check: expected class
'declaration',have 'reference' (component_ref) in gfc_trans_label_assign, at
fortran/trans-stmt.c:101
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.


-- 


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