Rate This Document
Findability
Accuracy
Completeness
Readability

Fortran Parameter Type Mismatch

The open-source GCC 12.3 has a stricter error reporting mechanism. Some software, such as ambertools, may report an error when being compiled using GCC 12.3. The error information is as follows:

Error: Type mismatch between actual argument at (1) and actual argument at (2) (TYPE(c_ptr)/REAL(8)).

Solution: Modify the code that does not comply with the language standard. Alternatively, delete the -pedantic-errors option and add the -fallow-argument-mismatch option.