A broken diagnostic is issued for the following invalid code snippet since GCC 4.0.0:
==================================================== struct A {}; void foo() { A a; a = ({ { 1; } }); } ==================================================== bug.cc: In function 'void foo()': bug.cc:6: error: no match for 'operator=' in 'a = #'expr_stmt' not supported by dump_expr#<expression error>' bug.cc:1: note: candidates are: A& A::operator=(const A&) -- Summary: [4.1/4.2/4.3/4.4 regression] Broken diagnostic: 'expr_stmt' not supported by dump_expr Product: gcc Version: 4.4.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=35335