From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10428 invoked by alias); 7 Jul 2006 10:52:36 -0000 Received: (qmail 10418 invoked by uid 48); 7 Jul 2006 10:52:29 -0000 Date: Fri, 07 Jul 2006 10:52:00 -0000 Subject: [Bug c/28299] New: ICE with -Wmissing-prototypes X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "aldot at gcc dot gnu dot org" 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 X-SW-Source: 2006-07/txt/msg00523.txt.bz2 List-Id: $ cat ice.c extern __typeof(foo) foo __asm__("") ; void * foo (void) {}; $ gcc-4.2-HEAD -c ice.c -Wmissing-prototypes -o ice.o ice.c:1: error: 'foo' undeclared here (not in a function) ice.c:2: internal compiler error: tree check: expected function_type or method_type, have integer_type in start_function, at c-decl.c:6039 Please submit a full bug report, with preprocessed source if appropriate. The ICE naturally goes away with -Wno-missing-prototype. Maybe related to PR 27719 -- Summary: ICE with -Wmissing-prototypes Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aldot at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28299