Commit a8c2c492 by Andrew Pinski Committed by Andrew Pinski

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
parent 11aaf40c
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.
......
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment