]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/14765 (ice-on-invalid-code, ICE while compiling ({}) expression)
authorJoseph Myers <jsm@polyomino.org.uk>
Tue, 21 Dec 2004 21:51:29 +0000 (21:51 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Tue, 21 Dec 2004 21:51:29 +0000 (21:51 +0000)
PR c/14765
* c-parse.in (compstmt_primary_start): Set last_expr_type to
NULL_TREE.

* gcc.dg/pr14765-1.c: New test.

From-SVN: r92471

gcc/ChangeLog
gcc/c-parse.in
gcc/testsuite/ChangeLog

index 28cbd426ba616aa3453cdaba4f5c3440b781f61a..05d5e6302adabcf6ba4f316404c632b193ef631d 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-21  Joseph S. Myers  <jsm@polyomino.org.uk>
+
+       PR c/14765
+       * c-parse.in (compstmt_primary_start): Set last_expr_type to
+       NULL_TREE.
+
 2004-12-19  Roger Sayle  <roger@eyesopen.com>
 
        PR middle-end/19068
index 59e399bc3b406a27dbac50398ab27c99dc8c468b..2912541a206946f4967bc19ed5ee793f786ba9f0 100644 (file)
@@ -2177,6 +2177,7 @@ compstmt_primary_start:
                  push_label_level ();
                  compstmt_count++;
                  $$ = add_stmt (build_stmt (COMPOUND_STMT, last_tree));
+                 last_expr_type = NULL_TREE;
                }
         ;
 
index 66d3d33a4b041c1ddddc2b39bf1484dd98177078..e1d9b6f92f616b7344eda4d3098d2ca712a06c60 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-21  Joseph S. Myers  <jsm@polyomino.org.uk>
+
+       PR c/14765
+       * gcc.dg/pr14765-1.c: New test.
+
 2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR other/19093