From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21934 invoked by alias); 3 May 2008 13:35:55 -0000 Received: (qmail 21717 invoked by uid 48); 3 May 2008 13:35:07 -0000 Date: Sat, 03 May 2008 13:35:00 -0000 Message-ID: <20080503133507.21716.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/36112] Bounds-checking on character length not working for array-constructors In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "d at domob dot eu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-05/txt/msg00177.txt.bz2 ------- Comment #2 from d at domob dot eu 2008-05-03 13:35 ------- Just one more thought, for array-constructors with all constant strings/components with length known at compile-time we should maybe give a compiler error instead of a runtime-error? Or only a warning and no runtime-checking? I believe at least for those arrays at the moment gfc_resolve_char_array_constructor changes the string lengths so they all match which means this is because there's no runtime error (IIRC). If there should be an error, we could do it there. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36112