From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17214 invoked by alias); 8 Apr 2013 17:41:48 -0000 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 Received: (qmail 17192 invoked by uid 48); 8 Apr 2013 17:41:46 -0000 From: "pdande1 at dow dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55901] [OOP] type is (character(len=*)) misinterpreted as array Date: Mon, 08 Apr 2013 17:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pdande1 at dow dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg00667.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55901 --- Comment #3 from pdande1 at dow dot com 2013-04-08 17:41:45 UTC --- (In reply to comment #2) > (In reply to comment #1) > > program characterconversions > > integer :: i=123 > > character(len=*) :: s > > write(s,*) i > > print *,s > > end program > > > > I am getting the below error while executing the above program (gcc version > > 4.8.0 20130302 (experimental) [trunk revision 196403] (GCC)) > > > > Error: Entity with assumed character length must be a dummy argument or a > > PARAMETER| > > ||=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===| > > Your example has nothing to do with the original PR. > > It is also invalid code: you must not use assumed character length (i.e. len=*) > in a main program. Hi Harald, I am newbie to fortran, Can you please explain me in detail with an example. Thanks in advance