Re: [PATCH] PR c++/48574

2011-04-13 Thread Dodji Seketeli
Jason Merrill writes: > On 04/13/2011 10:23 AM, Jakub Jelinek wrote: >> Then >> >> --- gcc/cp/class.c.jj2011-04-12 19:43:49.0 +0200 >> +++ gcc/cp/class.c 2011-04-13 15:23:07.463670993 +0200 >> @@ -5939,6 +5939,7 @@ fixed_type_or_null (tree instance, int * >> itself. *

Re: [PATCH] PR c++/48574

2011-04-13 Thread Jason Merrill
On 04/13/2011 10:23 AM, Jakub Jelinek wrote: Then --- gcc/cp/class.c.jj 2011-04-12 19:43:49.0 +0200 +++ gcc/cp/class.c 2011-04-13 15:23:07.463670993 +0200 @@ -5939,6 +5939,7 @@ fixed_type_or_null (tree instance, int * itself. */ if (TREE_CODE (instance) ==

Re: [PATCH] PR c++/48574

2011-04-13 Thread Jakub Jelinek
On Wed, Apr 13, 2011 at 10:17:25AM -0400, Jason Merrill wrote: > 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 > >+ determin

Re: [PATCH] PR c++/48574

2011-04-13 Thread Jason Merrill
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