Commit b160dd28 by Tobias Schlüter Committed by Tobias Schlüter

re PR fortran/21260 (Conflict between comment and H edit descriptor)

fortran/
	PR fortran/21260
	* io.c (check_format): Look for literal characters inside
	hollerith constant.
testsuite/
	PR fortran/21260
	* gfortran.dg/hollerith_1.f90: New test.

From-SVN: r99597
parent 5e6c8b64
2005-05-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de> 2005-05-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/21260
* io.c (check_format): Look for literal characters inside
hollerith constant.
2005-05-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
* resolve.c (resolve_symbol): Copy 'pointer' and 'dimension' * resolve.c (resolve_symbol): Copy 'pointer' and 'dimension'
attribute from result symbol to function symbol. attribute from result symbol to function symbol.
* trans-expr.c (gfc_conv_function_call): Look at sym->attr.dimension * trans-expr.c (gfc_conv_function_call): Look at sym->attr.dimension
......
...@@ -642,7 +642,7 @@ data_desc: ...@@ -642,7 +642,7 @@ data_desc:
{ {
while(repeat >0) while(repeat >0)
{ {
next_char(0); next_char(1);
repeat -- ; repeat -- ;
} }
} }
......
2005-05-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de> 2005-05-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/21260
* gfortran.dg/hollerith_1.f90: New test.
2005-05-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
* gfortran.dg/func_result_2.f90: New test. * gfortran.dg/func_result_2.f90: New test.
2005-05-11 Bud Davis <bdavis@gfortran.org> 2005-05-11 Bud Davis <bdavis@gfortran.org>
......
! { dg-do run }
! PR 21260
! We wrongly interpreted the '!' as the beginning of a comment.
! Also verifies the functioning of hollerith formatting.
character*72 c
write(c,8000)
8000 format(36(2H!)))
do i = 1,72,2
if (c(i:i+1) /= '!)') call abort
end do
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment