This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17868] New: [3.3/3.4/4.0 regression] RDIV_EXPR not supported by dump_expr
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2004 19:22:11 -0000
- Subject: [Bug c++/17868] New: [3.3/3.4/4.0 regression] RDIV_EXPR not supported by dump_expr
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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#<expression error>)'
bug.cc:2: note: candidates are: A& A::operator=(const A&) <near match>
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