bad_automatic_objects_1.f90
来自「linux下编程用 编译软件」· F90 代码 · 共 21 行
F90
21 行
! { dg-do compile }! Tests the fix for 25103, in which the presence of automatic objects! in the main program and the specification part of a module was not! detected.!! Contributed by Joost VandeVondele <jv244@cam.ac.uk>!module foo integer :: iend module foomodule bar use foo integer, dimension (i) :: j ! { dg-error "must have constant shape" } character (len = i) :: c1 ! { dg-error "must have constant character length" }end module barprogram foobar use foo integer, dimension (i) :: k ! { dg-error "must have constant shape" } character (len = i) :: c2 ! { dg-error "must have constant character length" }end program foobar
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?