[Bug fortran/15326] ICE with assumed length character strings
tobi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Oct 10 21:04:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list