This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/14957] [gfortran] testsuite issues


------- Additional Comments From jv244 at cam dot ac dot uk  2004-06-10 11:06 -------
(In reply to comment #4)
> (In reply to comment #0)

> > syntax error (subroutine missing?):
> > stack_varsize.f90
> 
> Test passes here. Supposedly it's been fixed in the meantime.

the point is actually that it shouldn't pass :-) 
both ifc and nag reject the code (line 20 should read: end subroutine sub1)

> 
> Do you have a quote from the standard to back this? I couldn't find one.
> 

No, this is an error from NAG f95. Normally a very good reference when it comes
to the standard, but I'm not sure why this wouldn't be allowed.


> > several instances where e.g. an integer is passed to a subroutine expecting a 
> > real. In principle that is illegal (but very common, indeed).
> 
> Does it warn with -pedantic? It should.

Well, the compiler can't easily check for this (e.g. subroutines in different
files) and if the data type don't have the same size it is really likely to be
an error, even if not pendantic. It is up to the programmer to get this right.
See also comment #3. I'm fairly sure such errors are the reasons for a number of
the (machine dependent) failures observed. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14957


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