This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fortran question
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Lassi A.Tuura" <lassi dot tuura at cern dot ch>
- Cc: Dale Johannesen <dalej at apple dot com>, Toon Moene <toon at moene dot indiv dot nluug dot nl>, gcc_mailing_list List <gcc at gcc dot gnu dot org>
- Date: 03 Aug 2004 08:26:23 +0200
- Subject: Re: Fortran question
- Organization: Integrable Solutions
- References: <F2DB3A4A-E4E9-11D8-BBCB-000A95D7CD40@apple.com><F234D50D-E512-11D8-92FB-000A9598A2E4@cern.ch>
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