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
Include
statement is ignored
#843
Comments
The second point is a bug -- an error should be reported if the file is not found. For the first one, the unparsed output is not expected to contain the |
Maybe I should explain the first point more. The expected behavior is what you say, if you include a header file, the contents of that file is included instead. So based on that, I assumed that given that |
|
Using Peter's example from above with the -funparse option:
|
I stand corrected. It turns out I was including a file with the wrong path. So when I didn't get an error, I mistakenly thought It was being ignored, when in reality it was just the same bug in the second point from my original post. |
Fix bug #843, bad recovery from failed opens of source files
…files Original merge commit: db7214e ###### Fix bug flang-compiler#843, bad recovery from failed opens of source files Original commit: 27d9db6 -------
…s of source files Original-commit: flang-compiler/f18@27d9db6 Reviewed-on: flang-compiler/f18#850
…/pmk-853 Fix bug flang-compiler/f18#843, bad recovery from failed opens of source files Original-commit: flang-compiler/f18@db7214e Reviewed-on: flang-compiler/f18#850
…s of source files Original-commit: flang-compiler/f18@27d9db6 Reviewed-on: flang-compiler/f18#850
Whenever a Fortran source has an
include
for a header file, theinclude
statement is ignored.-funparse
command line option is used, the generated output does not contain theinclude
.The text was updated successfully, but these errors were encountered: