-
Notifications
You must be signed in to change notification settings - Fork 139
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
surprising interactions: interface function can make enum value invisible #439
Comments
The interface block for This is what you need:
If flang was giving the error without "-u" then that is a flang bug; it's apparently letting the |
Hi, |
which it should, however, the |
How do you use -u flag with flang? It doesn't seem to be documented. Unfortunately, both -fimplicit-none and -fno-implicit-none are ignored by flang:
|
Neither -fimplicit-none nor -u is supported in flang. It's been reported as flang-compiler/clang#22. |
Closing this ticket as contrary to gfortran, Flang compiler rejected wrong code. Such behaviour should be considered as an advantage rather than a bug. |
Following code:
Can't be compiled due to an error:
Changing type of function in the interface (not to use enum value there) causes this program to build.
This is similar example of surprising interactions as in #367.
The text was updated successfully, but these errors were encountered: