Hi Andre,
FAIL: gfortran.dg/binding_label_tests_26b.f90 -O (test for errors, line 8)
FAIL: gfortran.dg/binding_label_tests_26b.f90 -O (test for errors, line 9)
When I revert your patch and test again, above fails do not occur. Could you
please investigate, if I am right?
Jep, I missed that.
The warning in the test case is bogus. binding_label_tests_26a.f90 has
module fg
contains
function fffi(f)
interface
function f() bind(c)
end function
end interface
end function
end module
so f is a dummy argument, which is not a global entity.
binding_label_tests_26b.f90 has
module f ! { dg-error "uses the same global identifier" }
use fg ! { dg-error "uses the same global identifier" }
end module
so it tests for that error.
The test case should stay, but I will remove the dg-error directives.
Best regards
Thomas