This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66528] unbalanced IF/ENDIF with -fmax-errors=1 causes invalid free
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 13 Jun 2015 10:51:54 +0000
- Subject: [Bug fortran/66528] unbalanced IF/ENDIF with -fmax-errors=1 causes invalid free
- Auto-submitted: auto-generated
- References: <bug-66528-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66528
--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Much better with a test case, of course.
program main
read (*,*) n
if (n<0) then
print *,foo
end
print *,bar
end program main