https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100297
--- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to Andreas Schwab from comment #3) > "\.data" is the same as ".data", you want either "\\.data" or {\.data}. But > it still doesn't lower the probability to match a filename by much. True. I've compared the dump generated by gfortran <= 10 vs. >= 11, looked at PR96624 again and came to the conclusion that the absence of the following was probably intended: (*(integer(kind=4)[0] * restrict) atmp.0.data)[0] = 1; (*(integer(kind=4)[0] * restrict) atmp.0.data)[1] = 2; The following pattern variant succeeds with 11+ and fails with 10-branch: diff --git a/gcc/testsuite/gfortran.dg/reshape_8.f90 b/gcc/testsuite/gfortran.dg/reshape_8.f90 index 01799ac5c19..56812124cb8 100644 --- a/gcc/testsuite/gfortran.dg/reshape_8.f90 +++ b/gcc/testsuite/gfortran.dg/reshape_8.f90 @@ -11,4 +11,4 @@ program test a = reshape([1,2,3,4], [2,0]) print *, a end -! { dg-final { scan-tree-dump-times "data" 4 "original" } } +! { dg-final { scan-tree-dump-not "data..0. =" "original" } } This should be safe enough...