This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gomp merge] Stage 2: OpenMP for the C++ front end


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]