From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6631 invoked by alias); 24 Jun 2003 05:41:17 -0000 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 Received: (qmail 16738 invoked by uid 48); 24 Jun 2003 05:35:48 -0000 Date: Tue, 24 Jun 2003 05:41:00 -0000 From: "pinskia at physics dot uc dot edu" To: gcc-bugs@gcc.gnu.org Message-ID: <20030624053547.11303.pinskia@physics.uc.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/11303] New: ICE in stor-layout.c:304 in int_mode_for_mode X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg02538.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303 Summary: ICE in stor-layout.c:304 in int_mode_for_mode Product: gcc Version: 3.4 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at physics dot uc dot edu CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: powerpc-apple-darwin6.6 OtherBugsDependingO 11026 nThis: A fall out from 11026: Here is the shortest test case I could come up with that causes this ICE (fixing s_callbacks by adding & fixes the ICE: template struct test { int run(int); typedef int (test::*callback_type)(int); int c1(int); int c2(int); static callback_type s_callbacks[]; }; template int test::run(int i) { callback_type c = s_callbacks[i]; return (this->*c)(i); } template typename test::callback_type test::s_callbacks[] = { test::c1, test::c2, }; int main() { test i; i.run(0); return 0; }