Message ID | 201010061636.17678.ebotcazou@adacore.com |
---|---|
State | New |
Headers | show |
Index: typeck.c =================================================================== --- typeck.c (revision 164827) +++ typeck.c (working copy) @@ -4940,6 +4940,7 @@ cp_build_addr_expr_1 (tree arg, bool str && TREE_CODE (argtype) != METHOD_TYPE && argtype != unknown_type_node && (val = get_base_address (arg)) + && COMPLETE_TYPE_P (TREE_TYPE (val)) && TREE_CODE (val) == INDIRECT_REF && TREE_CONSTANT (TREE_OPERAND (val, 0))) {