Re: generic interface question
- From: fj <francois.jacq@xxxxxxx>
- Date: Tue, 28 Aug 2007 15:53:11 -0700
Yes I have now a small test case which reproduces the trouble :
MODULE a
USE iso_c_binding
INTERFACE
SUBROUTINE foo1(a) BIND(C,name="a_c_routine")
IMPORT C_INT
INTEGER(C_INT) ::a
END SUBROUTINE
END INTERFACE
END MODULE
MODULE b
USE a,ONLY : foo1
INTERFACE foo
MODULE procedure foo1,foo2,foo3
END INTERFACE
CONTAINS
SUBROUTINE foo2(a)
DOUBLE PRECISION ::a
END SUBROUTINE
SUBROUTINE foo3(a)
CHARACTER ::a
END SUBROUTINE
END MODULE
[lcoul@b04p0004 test]$ g95 -c test2.f90
In file test2.f90:13
MODULE procedure foo1,foo2,foo3
1
Error: Cannot change attributes of USE-associated symbol 'foo1' at (1)
.
- Follow-Ups:
- Re: generic interface question
- From: Richard Maine
- Re: generic interface question
- References:
- generic interface question
- From: fj
- Re: generic interface question
- From: Richard Maine
- Re: generic interface question
- From: fj
- generic interface question
- Prev by Date: Re: generic interface question
- Next by Date: Re: fortran character set
- Previous by thread: Re: generic interface question
- Next by thread: Re: generic interface question
- Index(es):
Relevant Pages
|