From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12925 invoked by alias); 24 Jul 2007 19:59:42 -0000 Received: (qmail 12902 invoked by uid 48); 24 Jul 2007 19:59:33 -0000 Date: Tue, 24 Jul 2007 19:59:00 -0000 Message-ID: <20070724195933.12901.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/32760] Error defining subroutine named PRINT In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dfranke at gcc dot gnu dot org" 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: 2007-07/txt/msg02515.txt.bz2 ------- Comment #9 from dfranke at gcc dot gnu dot org 2007-07-24 19:59 ------- Obviously, this mechanism fails: /* Since nothing has any business being an lvalue in a module specification block, an interface block or a contains section, we force the changed_symbols mechanism to work by setting host_flag to 0. This prevents valid symbols that have the name of keywords, such as 'end', being turned into variables by failed matching to assignments for, eg., END INTERFACE. */ if (gfc_current_state () == COMP_MODULE || gfc_current_state () == COMP_INTERFACE || gfc_current_state () == COMP_CONTAINS) host_flag = 0; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32760