[Bug fortran/87449] New: -Wunused-variable and associate
m.diehl at mpie dot de
gcc-bugzilla@gcc.gnu.org
Thu Sep 27 08:14:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87449
Bug ID: 87449
Summary: -Wunused-variable and associate
Product: gcc
Version: 8.2.1
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: m.diehl at mpie dot de
Target Milestone: ---
Target: x86_64-pc-linux-gnu
Warning messages about unused variables (-Wunused-variable) appear wrongly when
associate is used (false positive):
pprogram test
implicit none
real :: a = 5
real :: b
associate(b => a)
write(6,*) b
end associate
end program
gives
Warning: Unused variable ‘b’ declared at (1) [-Wunused-variable]
when complied with -Wunused-variable
More information about the Gcc-bugs
mailing list