From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9148 invoked by alias); 23 Feb 2008 19:45:06 -0000 Received: (qmail 8860 invoked by uid 48); 23 Feb 2008 19:44:26 -0000 Date: Sat, 23 Feb 2008 19:45:00 -0000 Subject: [Bug c++/35335] New: [4.1/4.2/4.3/4.4 regression] Broken diagnostic: 'expr_stmt' not supported by dump_expr 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/msg02489.txt.bz2 A broken diagnostic is issued for the following invalid code snippet since GCC 4.0.0: ==================================================== struct A {}; void foo() { A a; a = ({ { 1; } }); } ==================================================== bug.cc: In function 'void foo()': bug.cc:6: error: no match for 'operator=' in 'a = #'expr_stmt' not supported by dump_expr#' bug.cc:1: note: candidates are: A& A::operator=(const A&) -- Summary: [4.1/4.2/4.3/4.4 regression] Broken diagnostic: 'expr_stmt' not supported by dump_expr Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: diagnostic, 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=35335