! { dg-do compile }REAL FUNCTION READ_NEXT()REAL,POINTER::TMP!$OMP SINGLEALLOCATE(TMP)!$OMP END SINGLE COPYPRIVATE (TMP) ! copies the pointer only!$OMP MASTERREAD(11)TMP!$OMP END MASTER!$OMP BARRIERREAD_NEXT=TMP!$OMP BARRIER!$OMP SINGLEDEALLOCATE(TMP)!$OMP END SINGLE NOWAITEND FUNCTION READ_NEXT