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: unassig...@gcc.gnu.org
        ReportedBy: reich...@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()>&'

Reply via email to