[gomp merge] Stage 2: OpenMP for the C++ front end
Jason Merrill
jason@redhat.com
Thu Mar 2 19:10:00 GMT 2006
Richard Henderson wrote:
> On Wed, Mar 01, 2006 at 02:50:58PM -0500, Jason Merrill wrote:
>> Why is there only one slot for constructors in the CP_OMP_CLAUSE_INFO?
>> You can't use the same function for both default and copy constructing
>> an object. It looks like you're assuming that if the type has a default
>> constructor, we don't need to know about its copy constructor, and that
>> doesn't make sense to me.
>
> Not that it doesn't have one, but that we won't use it. The slot
> contains the constructor that will be used for *this* object, and
> obviously any given object is only initialized one way.
Ah, I see.
Jason
More information about the Gcc-patches
mailing list