This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15326] ICE with assumed length character strings
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2004 21:04:05 -0000
- Subject: [Bug fortran/15326] ICE with assumed length character strings
- References: <20040506164815.15326.Tobias.Schlueter@physik.uni-muenchen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-10 21:04 -------
The patch is wrong because it does only solve part of the problem.
With the testcase from the mailing list posting referred to above, we get code
like this:
{
logical4 D.464;
char[1 .. .d] * pstr.0;
pstr.0 = (char[1 .. .d] *) _gfortran_internal_malloc (.d);
d (pstr.0, .d, &t1, 10);
where .d is used uninitialized.
If the function D from the testcase is declared external, with no interface, we
hit the same assertion as without the patch.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|patch |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15326