]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c++/17797 (ICE in build_reinterpret_cast)
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 3 Oct 2004 18:07:56 +0000 (18:07 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 3 Oct 2004 18:07:56 +0000 (11:07 -0700)
2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17797
        * typeck.c (build_reinterpret_cast): Return if the inner type
        is error_mark_node.

From-SVN: r88457

gcc/cp/ChangeLog
gcc/cp/typeck.c

index d22d49dd15a2521a7ccdae67fe29b2ffb96fd879..d93e152ab9cee623610d396420b3c3c2af7b2799 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR c++/17797
+       * typeck.c (build_reinterpret_cast): Return if the inner type
+       is error_mark_node.
+
 2004-10-01  Jan Hubicka  <jh@suse.cz>
 
        * semantics.c (expand_body): Update call of tree_rest_of_compilation.
index 85337735f071a0cf785f56e742a8d202a3e59293..8b9bdd3c5239c33c87b64d1b4a79def2d720ce20 100644 (file)
@@ -4711,6 +4711,9 @@ build_reinterpret_cast (tree type, tree expr)
 
   intype = TREE_TYPE (expr);
 
+  if (intype == error_mark_node)
+    return error_mark_node;
+
   if (TREE_CODE (type) == REFERENCE_TYPE)
     {
       if (! real_lvalue_p (expr))
This page took 0.064265 seconds and 5 git commands to generate.