From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8798 invoked by alias); 17 Sep 2008 06:27:44 -0000 Received: (qmail 7667 invoked by uid 48); 17 Sep 2008 06:26:25 -0000 Date: Wed, 17 Sep 2008 06:27:00 -0000 Subject: [Bug c++/37554] New: [4.3/4.4 regression] ICE with invalid cast 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-09/txt/msg01981.txt.bz2 The following invalid code snippet triggers an ICE since GCC 4.3.0: ======================== struct A {}; class B : A {}; void foo(B b) { (A)b; } ======================== bug.cc: In function 'void foo(B)': bug.cc:6: error: 'A' is an inaccessible base of 'B' bug.cc:6: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p_1, at tree-ssa.c:1075 Please submit a full bug report, [etc.] -- Summary: [4.3/4.4 regression] ICE with invalid cast Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, 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=37554