This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug report


Dear Andriy,

> If the optional argument b is absent, f1 works well but ff results into
> Segmentation fault

I can reproduce the segfault with all versions of gfortran from 4.4.7
up to the current trunk. However, with version 4.3.4 the segfault does
not appear and your program gives the following output:

 Both f1 and ff work if the optional parameter is present:
  rr(1)=   110.00000000000000        rr(2)=   132.00000000000000
  rr(1)=   110.00000000000000        rr(2)=   132.00000000000000
 But only f1 works if the optional parameter is absent:
  rr(1)=   110.00000000000000        rr(2)=   132.00000000000000
  rr(1)=   110.00000000000000        rr(2)=   132.00000000000000

So, unless I have missed something which makes your program invalid, I
think you have indeed found a compiler bug (which is even a
regression).

Do you know how to file a bugreport in bugzilla? (http://gcc.gnu.org/bugzilla/)

Cheers,
Janus


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]