From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28650 invoked by alias); 23 Feb 2008 17:52:06 -0000 Received: (qmail 28462 invoked by uid 48); 23 Feb 2008 17:51:25 -0000 Date: Sat, 23 Feb 2008 17:52:00 -0000 Subject: [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt 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: 2008-02/txt/msg02442.txt.bz2 The following valid code snippet triggers an ICE since GCC 4.2.0: ========================== template struct A { int i : 2; void foo() { typeof(i) j; } }; ========================== bug.cc: In member function 'void A< >::foo()': bug.cc:7: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] Also happens with __decltype instead of typeof (on mainline and 4.3 branch). -- Summary: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35316