https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89866
Bug ID: 89866 Summary: POINTER Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: laurent.pointal at laposte dot net Target Milestone: --- Created attachment 46041 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46041&action=edit Test case with pointer to 1D array In gfortran 8.3, one dimension array of integers, passed as pointer argument, incorrectly managed when accessing content (only access first item). Same code of InRef_i4_1d() function (see attachement) compiled with gfortran 7.3 and gfortran 8.3 provides different output, with a bug in gfortran 8.3: ----- Compilation with: GNU Fortran (GCC) 8.3.0 ----- Test: InRef_i4_1d item 1: inrefint1d = [1 1 1 1 1 1 1 1 1 1 ] 1 1 1 1 1 1 1 1 1 1 ----- Compilation with: GNU Fortran (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 ----- Test: InRef_i4_1d item 1: inrefint1d = [1 2 3 4 5 6 7 8 9 10 ] 1 2 3 4 5 6 7 8 9 10 Note: attachement has been extracted from larger code to show the problem. A+ L.Pointal.