home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!mcsun!chsun!bernina!torda
- From: torda@igc.ethz.ch (Andrew Torda)
- Subject: Bug in SGI ansi compliance (or are the others wrong ?)
- Message-ID: <1992Nov9.140450.591@bernina.ethz.ch>
- Summary: SGI's compiler disagrees with two others I tried
- Sender: news@bernina.ethz.ch (USENET News System)
- Organization: Computational Chemistry, ETH, Zuerich
- Date: Mon, 9 Nov 1992 14:04:50 GMT
- Lines: 23
-
- The following two lines of code don't compile with the -ansi option to
- the sgi cc compiler (version 3.10)
-
- ---------- begin code ----------
- #include <stdio.h>
- FILE *fp = stdout;
- ---------- end code ----------
-
- On an sgi machine I get:
- % cc -c z.c
- % cc -c -ansi z.c
- accom: Error: z.c, line 2: integer constant expected
- FILE *fp = (__stdout) ;
- ----------------------------^
-
- but it compiles using gcc's -pedantic option and the strict
- conformance option to sun's unbundled ansi C compiler.
-
- Which compiler is correct ? SGI's or the others ?
- -Andrew
- --
-
- Andrew Torda, Computational Chemistry, ETH, Zurich, torda@igc.ethz.ch
-