On 05/04/2011 10:45 PM, Tobias Burnus wrote:
This patch does the first minor steps towards TR 29113: It accepts the OPTIONAL
attribute in procedures with C binding. As gfortran already passes absent
arguments a NULL pointer, there is no changed needed, except in the diagnostics
part. Additionally
Build and regtested on x86-64-linux
OK for the trunk?
I forgot to include a run-time test case. Find one attached.
Tobias
! { dg-do run }
! { dg-additional-sources bind_c_usage_24_c.c }
!
! PR fortran/48858
! PR fortran/48820
!
! TR 29113: BIND(C) with OPTIONAL
!
module m
use iso_c_binding
This patch does the first minor steps towards TR 29113: It accepts the
OPTIONAL attribute in procedures with C binding. As gfortran already
passes absent arguments a NULL pointer, there is no changed needed,
except in the diagnostics part. Additionally, it is a feature also
supported by other c