Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/char_type_len_2.f90 @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! PR31251 Non-integer character length leads to segfault ! Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org> ! ! Updated to deal with the fix for PR fortran/67805. ! character(len=2.3) :: s ! { dg-error "INTEGER expression expected" } character(kind=1,len=4.3) :: t ! { dg-error "INTEGER expression expected" } character(len=,,7.2,kind=1) :: u ! { dg-error "Syntax error in CHARACTER declaration" } character(len=7,kind=2) :: v ! ! { dg-error "Kind 2 is not supported for CHARACTER" } character(kind=2) :: w ! ! { dg-error "Kind 2 is not supported for CHARACTER" } character(kind=2,len=7) :: x ! ! { dg-error "Kind 2 is not supported for CHARACTER" } end