This is the mail archive of the gcc@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]

Re: Fortran question


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


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