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:
parent
11aaf40c8c
commit
a8c2c49233
|
@ -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.
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue