Skip to content
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

Fortran 77 Comment Parsing Issue with Initial 'C' Character #236

Open
Foadsf opened this issue Apr 9, 2024 · 0 comments
Open

Fortran 77 Comment Parsing Issue with Initial 'C' Character #236

Foadsf opened this issue Apr 9, 2024 · 0 comments

Comments

@Foadsf
Copy link

Foadsf commented Apr 9, 2024

Describe the bug
Hello i-CodeCNES team,

I've encountered an issue with the Fortran 77 analysis in i-CodeCNES where lines starting with the C character are not recognized as comments. This happens even when explicitly specifying the language using the command:

icode.bat <FILE> --checked-languages "Fortran 77"

Expected behavior
In Fortran 77, any line starting with a C or c in the first column should be treated as a comment. (reference)

Current Behavior:
Lines starting with C are not considered comments by the analyzer, leading to potential misinterpretation of the code structure.

Temporary Workaround:
A temporary workaround is to replace all starting C characters with ! to ensure they are recognized as comments by i-CodeCNES.

Suggested Fix:
It would be beneficial to update i-CodeCNES to correctly recognize lines starting with C as comments when analyzing Fortran 77 code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant