From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27110 invoked by alias); 10 Oct 2004 21:04:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27066 invoked by uid 48); 10 Oct 2004 21:04:05 -0000 Date: Sun, 10 Oct 2004 21:04:00 -0000 Message-ID: <20041010210405.27065.qmail@sourceware.org> From: "tobi at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040506164815.15326.Tobias.Schlueter@physik.uni-muenchen.de> References: <20040506164815.15326.Tobias.Schlueter@physik.uni-muenchen.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/15326] ICE with assumed length character strings X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg01327.txt.bz2 List-Id: ------- 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