Fortran question

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Aug 3 06:25:00 GMT 2004


Lassi A.Tuura <lassi.tuura@cern.ch> writes:

| (That latter is not very typical for F77 programs, but more usual for
| current C++ programs using legacy F77 libraries.  And no, dynamic
| linker doesn't need to pick the largest common, it should pick the
| first definition and ignore all the others, no matter which library
| they come from.  Sort of like template static data in C++.)

Your idea of how such things work in C++ is very misleading.  C++
requires that those implicitly instantiated templates obey the usual
Onde Definition Rule -- pretty much in agreement with the requirement
on COMMON block in both f77 and f90 standards.

-- Gaby



More information about the Gcc mailing list