This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17868] New: [3.3/3.4/4.0 regression] RDIV_EXPR not supported by dump_expr


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]