This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran + Testsuite] Fix coarray handling in modules
- From: Dominique d'Humières <dominiq at lps dot ens dot fr>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, fxcoudert at gmail dot com
- Date: Sun, 4 Jan 2015 00:04:30 +0100
- Subject: Re: [Patch, Fortran + Testsuite] Fix coarray handling in modules
- Authentication-results: sourceware.org; auth=none
- References: <20150103102245 dot BAB57105 at mailhost dot lps dot ens dot fr> <54A855FB dot 3050207 at net-b dot de> <D0555AD0-E163-4949-ACCC-2EDF74EA220B at lps dot ens dot fr> <54A86D6A dot 2030101 at net-b dot de>
Compilation with the new patch fails with
../../work/gcc/fortran/trans-decl.c: In function 'void gfc_build_qualified_array(tree, gfc_symbol*)':
../../work/gcc/fortran/trans-decl.c:855:25: error: 'cur_module' was not declared in this scope
gfc_module_add_decl (cur_module, token);
Dominique
> Le 3 janv. 2015 à 23:30, Tobias Burnus <burnus@net-b.de> a écrit :
>
> Dominique d'Humières wrote:
>> From a quick test, with the patch I still see the error with -m32
>
> It helps if one actually adds the decl. The following (still untested) should help. I also marked the token as nonaliasing (it really should!) and added for proc pointers the tree-public optimization.
>
> Tobias
> <foo.diff>