Re: why doesn't this compile ?



beliavsky@xxxxxxx writes:

> Richard E Maine wrote:

>> Looks fine to me. And it compiles and runs fine with both compilers that
>> I just tried (Nag and g95). This suggests a compiler problem.
>
> I think the original code at the link Bart provided was different from
> what is currently there, and the original code was not accepted by the
> compilers I tried. I think it was...
[code elided]

Oh. Well that's completely different.

</grump mode>
I can't diagnose problems very well if the code I'm shown isn't
actually the code with the problem. If I had seen the actual code
with the problem, I wouldn't have needed to test it - I'd have recognized
the problem at once.
</end grump mode>

I already wrote up an explanation of exactly the same coding error in
another thread today. I'll just reference that thread instead of
retyping it. (Ok, maybe I'm not entirely out of grump mode yet.)
Look for the thread titled "compilation problem with
module function interface definition" with "phony account" (Mirko)
as the OP.

--
Richard Maine
email: my last name at domain
domain: summertriangle dot net
.



Relevant Pages

  • Re: To Richard Heathfield: enoughs enough
    ... I have given Richard Heathfield the benefit of the doubt for more than ... > It is a fallacy to cite as an authority someone who isn't an authority - for ... I did not say that Steven Skiena, the author of The Algorithm Design ... and Optimization are the norm, or that all compilers use yacc, bottom ...
    (comp.programming)
  • Re: small numerical differences in floating point result between wintel and Sun/SPARC
    ... both compilers I've tried this on compile and run without error ... >>private components can be peeked into. ... Don't worry, none of this is going into production code (in any case, ... Dr Richard H D Townsend ...
    (comp.lang.fortran)
  • Re: New to Programming
    ... a chain saw either, but I don't prefer C to a chain saw. ... It was a rhetorical question, styled after the OP's question in an attempt ... compilers will compile C but no vice versa. ... Richard Heathfield ...
    (comp.lang.c)
  • Re: Basic AVR questions
    ... Richard!) drops by this usenet ... we are releasing new version of the compilers and in ... compilers ICC. ... we did not charge an upgrade fee for customers ...
    (comp.arch.embedded)
  • Re: small numerical differences in floating point result between wintel and Sun/SPARC
    ... end program foo ... both compilers I've tried this on compile and run without error ... -- so long as one knows its definition -- a derived type with private ... Dr Richard H D Townsend ...
    (comp.lang.fortran)