---
title: Fortran参数类型不匹配
description: "开源版本GCC 12.3的报错机制更为严格，部分软件（如ambertools）使用该版本GCC编译时出现报错，报错信息如下："
url: https://www.hikunpeng.com/document/detail/zh/kunpengdevps/compilation/ug-hgcc/kunpenghgcc_06_0060.html
sourcePath: /source/zh/kunpengdevps/compilation/ug-hgcc/kunpenghgcc_06_0060.html
indexId: 07892359a29968b37361c887a5f9132e3b194c421581e39748b57393b5b7704868
---
# Fortran参数类型不匹配

开源版本GCC 12.3的报错机制更为严格，部分软件（如ambertools）使用该版本GCC编译时出现报错，报错信息如下：

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

解决方案：修改不符合语言标准的代码，或者删除-pedantic-errors选项并添加选项-fallow-argument-mismatch。
