-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Derived type cannot be declared with both PRIVATE and BIND(C) with gfortran #59
Comments
@clementval Do you mean that |
@h-murai PRIVATE :: t_rt
TYPE , BIND( C ) :: t_rt If you look into the standard is not super clear but
|
@clementval Hmm. According to R426:
a TYPE statement can have multiple type-attr-spec. So, I consider that |
Ok but then this is not compilable with gfortran |
@h-murai should try with other compiler to check the behavior |
@h-murai I tried with PGI and Cray and both are ok with this. Only gfortran does not like this construct. |
@clementval Ok. I understand the situation. Considering that gfortran is important, I agree the PR is a better solution to this issue. |
@h-murai I’ll try to fill a bug report for gfortran and see what they reply. So like this it would be only a temporary fix |
I filed a but report in gfortran |
keep this issue as a reminder. The status of the gfortran's limitation should be checked in the future. |
The following code is compilable with gfortran but not anymore once passed through the front-end and back-end.
MODULE mod1 TYPE , PRIVATE , BIND( C ) :: t_rt END TYPE t_rt END MODULE mod1
This is specified in the Fortran standard at R427
The text was updated successfully, but these errors were encountered: