From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3566 invoked by alias); 18 Oct 2012 10:26:58 -0000 Received: (qmail 3527 invoked by uid 48); 18 Oct 2012 10:26:41 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/25466] typeid expression fails to throw bad_typeid according to 5.2.8p2 Date: Thu, 18 Oct 2012 10:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Known to fail Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-10/txt/msg01653.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25466 Paolo Carlini changed: What |Removed |Added ---------------------------------------------------------------------------- CC|gcc-bugs at gcc dot gnu.org | Known to fail| | --- Comment #5 from Paolo Carlini 2012-10-18 10:26:39 UTC --- Here we should finally spend a bit of time extending build_typeid to handle more than INDIRECT_REF: in this case we have a COMPOUND_EXPR, which would be easy to handle, but we can also have nested COMPOUND_EXPRs... what else?