[Patch, Fortran] PR 44430: [4.5/4.6 Regression] Infinite recursion with -fdump-parse-tree

Janus Weil janus@gcc.gnu.org
Mon Jun 7 23:47:00 GMT 2010


Hi Thomas,

>> Also: Should I include a test case when committing this patch? And if
>> yes, what should it look like? I haven't found any test cases for
>> -fdump-parse-tree in the test suite .
>
> I would suggest
>
> ! { dg-options "-fdump-parse-tree" }
>
> and, at the bottom,
>
> ! { dg-output ".*" }

Apparently this does not work, supposedly because dg-output applies to
the output of the built executable for dg-run tests, and not the
output of the compiler itself.

When I try the following:


! { dg-do compile }
! { dg-options "-fdump-parse-tree" }

subroutine foo(a,b)
  real :: a(10), b(5)
  a(1:5) = b
end subroutine

! { dg-excess-errors "*" }


this gives me:

# of expected failures          1

(where the 'dg-excess-errors' effectively seems to behave like an
xfail, which I don't quite understand).


Any better ideas? Or should I just commit without a test case?

Cheers,
Janus



More information about the Gcc-patches mailing list