This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51415] New: Broken diagnostic: 'vec_init_expr' not supported by dump_expr
- From: "reichelt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Dec 2011 22:22:38 +0000
- Subject: [Bug c++/51415] New: Broken diagnostic: 'vec_init_expr' not supported by dump_expr
- Auto-submitted: auto-generated
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()>&'