[Bug c++/33208] New: Broken diagnostic: 'component_ref' not supported by dump_decl

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 27 21:34:00 GMT 2007


The following invalid code snippet triggers a broken diagnostic since
at least GCC 2.95.3:

====================
struct A
{
  bool b;
};

void f(A a)
{
  a.b--;
}
====================

bug.cc: In function 'void f(A)':
bug.cc:8: error: invalid use of '--' on bool variable '#'component_ref' not
supported by dump_decl#<declaration error>'


-- 
           Summary: Broken diagnostic: 'component_ref' not supported by
                    dump_decl
           Product: gcc
           Version: 4.3.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=33208



More information about the Gcc-bugs mailing list