[PATCH] PR c++/48574
Jason Merrill
jason@redhat.com
Wed Apr 13 14:17:00 GMT 2011
On 04/13/2011 09:40 AM, Dodji Seketeli wrote:
> + if (type_dependent_expression_p (DECL_INITIAL (instance)))
> + {
> + /* The initializer is type dependent so we cannot
> + determine the dynamic type of this reference. */
> + if (nonnull)
> + *nonnull = 0;
> + return NULL_TREE;
> + }
*nonnull should still be true in this case; even if we don't know what
the reference refers to, we can still assume that it refers to
something. Otherwise OK.
Jason
More information about the Gcc-patches
mailing list