re PR c++/17797 (ICE in build_reinterpret_cast)

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
This commit is contained in:
Andrew Pinski 2004-10-03 18:07:56 +00:00 committed by Andrew Pinski
parent 11aaf40c8c
commit a8c2c49233
2 changed files with 9 additions and 0 deletions

View 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.

View 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))