Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!ecsvax!urjlew From: urjlew@ecsvax.UUCP Newsgroups: comp.lang.fortran Subject: Re: "Interesting" error interpretation Message-ID: <3910@ecsvax.UUCP> Date: Thu, 24-Sep-87 17:18:44 EDT Article-I.D.: ecsvax.3910 Posted: Thu Sep 24 17:18:44 1987 Date-Received: Sat, 26-Sep-87 13:43:51 EDT Organization: UNC Educational Computing Service Lines: 72 Keywords: compiler diagnostics I put the test problem through the FORTRAN compiler on our IBM mainframe. The compiler is something like release 2.0 of version 1.4.1 of the VS FORTRAN compiler. There is a newer version Fortran compiler release 2.2 of version 2.0, but we don't have it here. I could access it at Cornell if there was great curiousity on the net readers part. Anyways I did this just to see if the usually maligned IBM did any better or worse than the highly touted DEC. You will find below the highly censored output of the compile. Note Listing of source with internal statement mubers Error messages in line in the source listing Cross reference listing, which indicates that it also took num2 as undefined. a summarry of the errors in the module listed at the end of the module. The errors messages are still not as brilliant as one might hope for. i.e. not diagnosis of shifted statement. -------------------------------------------------------------- *....*...1.........2.........3.........4.........5.........6..... Status: R ISN 1 PROGRAM PRACT ISN 2 REAL NUM1,NUM2,SUM ISN 3 WRITE(*,*) 'Enter two numbers to be added to each other:' ISN 4 READ(*,*) NUM1, NUM2 SUM = NUM1 + NUM2 ***ERROR 1032(S)*** MISPLACED EQUAL SIGN IN EXPRESSION. IN AN ASSIGNMENT ST NAME OR VARIABLE NAME ONLY. ***ERROR 1417(S)*** AN I/O LIST ITEM IS INVALID. EITHER AN EXPRESSION WAS F WHILE PROCESSING THE ITEM. CHECK THAT THE ITEM STATEMENT FUNCTION NAME, OR AN INTRINSIC FUNCTI ISN 5 WRITE(*,*) ISN 6 WRITE(*,*) 'The sum of the two numbers is : ',SUM ISN 7 STOP ISN 8 END ..... some lines of compiler output deleted ........ LEVEL 1.4.1 (MAY 1985) VS FORTRAN DATE: SEP 23, 1987 TIME: SYMBOL CROSS REFERENCE DICTIONARY NAME MODE TAG DECLARED REFERENCES ______ ____ ______ ________ __________ NUM1 R*4 T 2 4 NUM2 R*4 T 2 UNREFERENCED NUM2M I*4 4 SUM R*4 T 2 6 VARIABLES REFERENCED BUT NOT SET. (* POSSIBLY SET AS ARGUMENT.) SUM ....storage map and more deleted ...... *** VS FORTRAN ERROR MESSAGES *** IFX1032I ARTH 12(S) 4 MISPLACED EQUAL SIGN IN EXPRESSION. IN AN ASSIG SUBSCRIPTED ARRAY NAME OR VARIABLE NAME ONLY. IFX1417I IOLS 12(S) 4 AN I/O LIST ITEM IS INVALID. EITHER AN EXPRESSI FOUND WHILE PROCESSING THE ITEM. CHECK THAT THE STATEMENT FUNCTION NAME, OR AN INTRINSIC FUNCTI *STATISTICS* SOURCE STATEMENTS = 8, PROGRAM SIZE = 562 BYTES, PROGRAM NAME = P *STATISTICS* 2 DIAGNOSTICS GENERATED. HIGHEST SEVERITY CODE IS 12. **PRACT** END OF COMPILATION 1 ****** -------------------------------------------------------- Reply-To: Rostyslaw Jarema Lewyckyj urjlew@ecsvax.UUCP , urjlew@tucc.bitnet or urjlew@tucc.tucc.edu (ARPA,SURA,NSF etc. internet) tel. (919)-962-9107