------- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-27 02:19 -------
Another simple regression for the new year to test:
Index: semantics.c
===================================================================
--- semantics.c (revision 120211)
+++ semantics.c (working copy)
@@ -1621,7 +1621,12 @@
finish_stmt_expr_expr (tree expr, tree stmt_expr)
{
if (error_operand_p (expr))
- return error_mark_node;
+ {
+ /* The type of the statement-expression is the type of the last
+ expression. */
+ TREE_TYPE (stmt_expr) = error_mark_node;
+ return error_mark_node;
+ }
/* If the last statement does not have "void" type, then the value
of the last statement is the value of the entire expression. */
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-12-24 06:12:27 |2006-12-27 02:19:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30158