From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13649 invoked by alias); 1 Jun 2010 13:55:20 -0000 Received: (qmail 13537 invoked by uid 48); 1 Jun 2010 13:55:01 -0000 Date: Tue, 01 Jun 2010 13:55:00 -0000 Subject: [Bug c/44365] New: ICE with -fdump-tree-all X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bmei at broadcom dot com" 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/msg00040.txt.bz2 GCC produces the ICE for the following code with -fdump-tree-all. This happens in both 4.4.x as well as 4.5.0. It is caused by infinitely recursive call to dump_generic_node (tree-pretty-print.c) gcc t.c -fdump-tree-all int main(int argc, char *argv[]){ int n; if(argc==2) n=atoi(argv[1]); else{ exit(1); } #define offset(x,y) ((char *)&(x->y))-((char *)x) struct { int a[n]; char b[n]; char c; }*bar; printf("%d %d %d %d \n",offset(bar,a[0]),offset(bar,b[0]),offset(bar,c),sizeof(*bar)); return 0; } -- Summary: ICE with -fdump-tree-all Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bmei at broadcom dot com GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44365