Commit 4154c014 authored by pinskia's avatar pinskia

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.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88457 138bc75d-0d04-0410-961f-82ee72b054a4
parent 66c3306a
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