[Bug fortran/96294] Compile error for pointer function

2020-07-23 Thread peng.w...@compiler-dev.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96294 --- Comment #4 from PengWang --- (In reply to Dominique d'Humieres from comment #3) > See https://gcc.gnu.org/wiki/GFortranStandards. thanks a lot!!! ^_^

[Bug fortran/96294] Compile error for pointer function

2020-07-23 Thread peng.w...@compiler-dev.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96294 --- Comment #2 from PengWang --- (In reply to Dominique d'Humieres from comment #1) > read > > F2008: A pointer function assignment is ambiguous if it is the first > executable statement after the specification block. Please add any other > kind

[Bug fortran/96294] New: Compile error for pointer function

2020-07-23 Thread peng.w...@compiler-dev.com
Assignee: unassigned at gcc dot gnu.org Reporter: peng.w...@compiler-dev.com Target Milestone: --- I got a testcase like this: program a IMPLICIT NONE myfunc() = 311 print*,myfunc() contains FUNCTION myfunc() RESULT (result_ptr) IMPLICIT

[Bug fortran/95718] [8/9/10/11 Regression] Wrong pointer associated status without initialization

2020-07-23 Thread peng.w...@compiler-dev.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95718 --- Comment #4 from PengWang --- (In reply to kargl from comment #3) >16.5.2.2 Pointer association status > >A pointer may have a pointer association status of associated, >disassociated, or undefined. Its association status may cha

[Bug fortran/95718] New: Wrong pointer associated status without initialization

2020-06-17 Thread peng.w...@compiler-dev.com
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: peng.w...@compiler-dev.com Target Milestone: --- consider the code below: program test integer,pointer::ptr integer,pointer::ptr1 integer,pointer::ptr2 integer,pointer::ptr3 integer,pointer::ptr4 print