This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36276] [4.3/4.4 Regression] possible issue with opening fortran files?
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2008 17:00:16 -0000
- Subject: [Bug fortran/36276] [4.3/4.4 Regression] possible issue with opening fortran files?
- References: <bug-36276-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from burnus at gcc dot gnu dot org 2008-06-14 17:00 -------
For completeness, the line was added by
r128676 | fxcoudert | 2007-09-23 01:48:02 +0200 (So, 23. Sep 2007) | 5 lines
PR fortran/33528
The invalid read happens for linemap_add's "to_file". Above the function there
is the note:
The text pointed to by TO_FILE must have a lifetime
at least as long as the final call to lookup_line ().
My feeling is that current_file->filename is freed too early.
FX, do you have an idea?
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36276