This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/27954] ICE on garbage in DATA statement



------- Comment #14 from jvdelisle at gcc dot gnu dot org  2006-10-20 03:54 -------
Another test case with similar error:

program friend
  character*20 y, x 0
  data  y /'abcdef'/, x /'jbnhjk'/ o
  print *, "basketcase"
end program friend

$ gfc pr27954.f90
 In file pr27954.f90:2

  character*20 y, x 0
                  1
Error: Syntax error in data declaration at (1)
 In file pr27954.f90:3

  data  y /'abcdef'/, x /'jbnhjk'/ o
                                   1
Error: Syntax error in DATA statement at (1)
 In file pr27954.f90:6

end program friend
                 1
 Internal Error at (1):
 gfc_typespec(): Undefined type

This actually is error in gfc_typename ()  The error message has a typo in it.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]