From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5141 invoked by alias); 6 Jun 2010 21:46:02 -0000 Received: (qmail 4894 invoked by uid 48); 6 Jun 2010 21:45:46 -0000 Date: Sun, 06 Jun 2010 21:46:00 -0000 Message-ID: <20100606214546.4893.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/44430] [4.5/4.6 Regression] Infinite recursion with -fdump-parse-tree In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "janus 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: 2010-06/txt/msg00672.txt.bz2 ------- Comment #6 from janus at gcc dot gnu dot org 2010-06-06 21:45 ------- A simple way to fix this: Index: gcc/fortran/dump-parse-tree.c =================================================================== --- gcc/fortran/dump-parse-tree.c (revision 160347) +++ gcc/fortran/dump-parse-tree.c (working copy) @@ -853,7 +853,7 @@ show_symbol (gfc_symbol *sym) } } - if (sym->formal_ns) + if (sym->formal_ns && (sym->formal_ns != sym->ns)) { show_indent (); fputs ("Formal namespace", dumpfile); I'm not 100% sure yet if this is the *proper* way, but I'll try to find out. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44430