public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17868] New: [3.3/3.4/4.0 regression] RDIV_EXPR not supported by dump_expr
@ 2004-10-06 19:22 reichelt at gcc dot gnu dot org
  2004-10-06 19:25 ` [Bug c++/17868] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-06 19:22 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-12-10 17:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-06 19:22 [Bug c++/17868] New: [3.3/3.4/4.0 regression] RDIV_EXPR not supported by dump_expr reichelt at gcc dot gnu dot org
2004-10-06 19:25 ` [Bug c++/17868] " reichelt at gcc dot gnu dot org
2004-10-06 19:30 ` pinskia at gcc dot gnu dot org
2004-10-08 19:41 ` cvs-commit at gcc dot gnu dot org
2004-10-08 19:45 ` cvs-commit at gcc dot gnu dot org
2004-10-08 19:48 ` [Bug c++/17868] [3.3 " reichelt at gcc dot gnu dot org
2004-12-10 15:48 ` reichelt at gcc dot gnu dot org
2004-12-10 16:53 ` gdr at integrable-solutions dot net
2004-12-10 17:03 ` cvs-commit at gcc dot gnu dot org
2004-12-10 17:04 ` reichelt at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).