interface_1.f90
来自「用于进行gcc测试」· F90 代码 · 共 43 行
F90
43 行
! { 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-warning "in generic interface" "" } end interface contains real function f(a) real a f = a end functionend module z! { dg-final { cleanup-modules "y z" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?