interface_1.f90
来自「linux下编程用 编译软件」· F90 代码 · 共 41 行
F90
41 行
! { dg-do compile }! This program would segfault without the patch for PR fortran/24005.module y ! ! If private statement is removed, then we get a bunch of errors ! private f ! ! If we rename 'f' in module y to say 'g', then gfortran correctly ! identifies ambiguous as being ambiguous. ! interface ambiguous module procedure f end interface contains real function f(a) real a f = a end functionend module ymodule z use y interface ambiguous module procedure f ! { dg-error "in generic interface" "" } end interface contains real function f(a) real a f = a end functionend module z
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?