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++/51415] New: Broken diagnostic: 'vec_init_expr' not supported by dump_expr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51415

             Bug #: 51415
           Summary: Broken diagnostic: 'vec_init_expr' not supported by
                    dump_expr
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


A broken diagnostic is generated since GCC 4.5.0 for the following invalid code
snippet:

===============
void foo()
{
  int x[1];
  [x]{} = 0;
}
===============

bug.cc: In function 'void foo()':
bug.cc:4:11: error: no match for 'operator=' in '{#'vec_init_expr' not
supported by dump_expr#<expression error>} = 0'
bug.cc:4:11: note: candidate is:
bug.cc:4:5: note: foo()::<lambda()>& foo()::<lambda()>::operator=(const
foo()::<lambda()>&) <deleted>
bug.cc:4:5: note:   no known conversion for argument 1 from 'int' to 'const
foo()::<lambda()>&'


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