This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Emacs and GFortran
- From: Angelo Graziosi <Angelo dot Graziosi at roma1 dot infn dot it>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: fortran at gcc dot gnu dot org, emacs-devel at gnu dot org
- Date: Tue, 31 Oct 2006 09:26:36 +0100 (MET)
- Subject: Re: Emacs and GFortran
-------------------------------------
$ cat hello.F
program hello
implicit none
write(*,) 'Hello!'
end
$ g77 hello.F
hello.F: In program `hello':
hello.F:3: (<==)
write(*,) 'Hello!'
^
Expression at (^) has incorrect data type or rank for its context
$ gfortran hello.F
In file hello.F:3
write(*,) 'Hello!'
1
Error: Syntax error in WRITE statement at (1)
-------------------------------------
The only difference between G77 anf GFortran seems the line (<==).
Why is it so hard for GFortran add that line?
Cheers,
Angelo.
On Mon, 30 Oct 2006, Steve Kargl wrote:
> On Mon, Oct 30, 2006 at 02:16:57PM -0500, Richard Stallman wrote:
> > I would ask if there is a way to integrate Emacs with GFortran so that in
> > case of compiler error one can jump to the line wher the error is born.
> >
> > If the error messages have the standard GNU form, then it should work.
> > If not, then probably GFortran should be fixed to put its error
> > messages in standard form.
>
> I disagree. Gfortran's error mechanism can span multiple lines.
> The GNU form can't.
>
> --
> Steve
>