From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4787 invoked by alias); 6 Oct 2004 19:22:12 -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 4780 invoked by uid 48); 6 Oct 2004 19:22:11 -0000 Date: Wed, 06 Oct 2004 19:22:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20041006192210.17868.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17868] New: [3.3/3.4/4.0 regression] RDIV_EXPR not supported by dump_expr X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg00758.txt.bz2 List-Id: Compiling the following testcase with -pedantic, I get a hosed error message with gcc 3.4.2: ============================= struct A { A(double); }; const A& foo(); void bar(double x) { foo()=A(x/2); } ============================= bug.cc: In function `void bar(double)': bug.cc:10: error: no match for 'operator=' in 'foo() = A(#`rdiv_expr' not supported by dump_expr#)' bug.cc:2: note: candidates are: A& A::operator=(const A&) I have a fix for this. Will post patch soon. Just for the record: the error message on mainline has another problem, see PR 17867. -- Summary: [3.3/3.4/4.0 regression] RDIV_EXPR not supported by dump_expr Product: gcc Version: 3.4.2 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17868