public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Paul Brook <paul@nowt.org>
To: Bud Davis <bdavis9659@comcast.net>,
	kargl@troutmask.apl.washington.edu, gcc <gcc@gcc.gnu.org>
Subject: Re: g77 compiles illegal code in testsuite?
Date: Fri, 23 May 2003 14:23:00 -0000	[thread overview]
Message-ID: <200305221707.46374.paul@nowt.org> (raw)
In-Reply-To: <3ECE154F.8080009@comcast.net>

On Friday 23 May 2003 1:34 pm, Bud Davis wrote:
> Just to confuse things more, i compiled this snippet
>
>         INTEGER I
>         REAL R,NUM
>         NUM=MAX(I,R)
>         END
>
> on a few f77 compilers:
>
> sgi - MIPSPro-77 --   Compiles without warnings or errors
> dec - f90 /f77   --   Fatal Error on type mismatch
>
>
> Maybe g77 should issue a warning (when invoked with -fpedantic) ?
>
> Of course, IMHO, g95 should be backwards compatable with g77 :)

G95 currently allows different type kinds (ie. double or single precision) as 
an extension, but not different types. It could easily be modified to accept 
different types. I've no idea how easy/hard it would be to get g77 to do 
something similar.

As this code is non-portable and techincally illegal a warning is issued. This 
becomes an error with -pedantic.

Paul

  reply	other threads:[~2003-05-23 14:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-23 12:57 Bud Davis
2003-05-23 14:23 ` Paul Brook [this message]
2003-05-23 15:15 ` Steven G. Kargl
2003-05-23 15:36   ` Bud Davis
2003-05-23 22:57   ` Toon Moene
2003-05-23 23:40     ` Steven Bosscher
  -- strict thread matches above, loose matches on Subject: below --
2003-05-23  3:33 Steven G. Kargl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200305221707.46374.paul@nowt.org \
    --to=paul@nowt.org \
    --cc=bdavis9659@comcast.net \
    --cc=gcc@gcc.gnu.org \
    --cc=kargl@troutmask.apl.washington.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).