This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: PR 36322/36463
- From: "Janus Weil" <jaydub66 at googlemail dot com>
- To: "Dominique Dhumieres" <dominiq at lps dot ens dot fr>
- Cc: fortran at gcc dot gnu dot org
- Date: Thu, 23 Oct 2008 23:16:26 +0200
- Subject: Re: PR 36322/36463
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=vS5ejTplxQ/uKzqJj+PkeiAtRzFDVer0J4XjFhn55Uc=; b=iXmnyGpUdfXzIgmpaNGNul9kvYp0LX1d+VkhtJLlGHM3iP05Rj78GVOJmOp/xZArwu 6zZjKVM8DN81yC1+nKIWHRUP/Oh4W94jCOXQRbeYXqv8ys8sGAWs3kZLfJd7Zi80KZyY ai/E6+pHa9fF0r/Xj5bQ/yfoMAc/YoLMYxZeo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=glzMH0I9tSEXEtNyNezNfetOFVwmRq2jCj7tPbS2C6tUVoqO+6raHTvrro/gkBPoMI 4hpXJ/v+rDyiiyHL6xDuqKFEN2LkRGpr/IbO9PcUJs+TZnCGxtuABGRbDkAw7stW1QE0 8cyZkBwlclpoMm+lEQB/2K2susY+gvUPrAgro=
- References: <20081023210541.7BE663BAB9@mailhost.lps.ens.fr>
> type(C_FUNPTR) fp
> 1
> Error: Derived type 'c_funptr' at (1) is being used before it is defined
Yeah, I have also noticed this. There are a few more formal errors in
the program, which can easily be fixed.
> If I comment 'private' of if I uncomment the 'use ISO_C_BINDING' in
> the program, the error disappears. I have no idea if this the way it
> is supposed to work: does 'private' prevent 'ISO_C_BINDING' to be
> associated in the program?
I guess the 'private' implies that the modules that are used by
other_fun are not automatically available in a program that uses
other_fun.
At least this is my naive guess without having checked it in the standard.
Cheers,
Janus