From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3819 invoked by alias); 3 Nov 2008 18:43:06 -0000 Received: (qmail 27743 invoked by uid 48); 3 Nov 2008 18:41:44 -0000 Date: Mon, 03 Nov 2008 18:43:00 -0000 Message-ID: <20081103184144.27742.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/37999] Fortran shape and kind intrinsic In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-11/txt/msg00235.txt.bz2 ------- Comment #3 from kargl at gcc dot gnu dot org 2008-11-03 18:41 ------- (In reply to comment #2) > With the new version, I will check the second problem I reported > as well and report back (kind intrinsic with character argument > in a type declararation statement) The 2nd problem is also fixed in 4.3.2 and newer gfortran. character (len = 3, kind = kind("a" ) c c = "b" print *, kind("a"), c end program troutmask:kargl[203] ~/../sgk/work/4x/bin/gfortran -static -o z t.f90 t.f90:1.42: character (len = 3, kind = kind("a" ) c 1 Error: Syntax error in CHARACTER declaration at (1) t.f90:2.7: c = "b" 1 Error: Can't convert CHARACTER(1) to REAL(4) at (1) The second error is a side effect of the first error. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37999