Problem with class template instantiated with void.
Jason Merrill
jason@cygnus.com
Tue Dec 1 10:49:00 GMT 1998
>>>>> Wegher, Jeff <JWegher@neonsoft.com> writes:
> For some reason, it's either attempting to instantiate template members
> which aren't used or is doing too much checking of the template members
> upon first parse, and thus causes a little problem with smart-pointers
> instantiated with void.
It's not instantiating the members; it's just instantiating the class,
which includes the signatures of all the members. Only default args and
function bodies are deferred. Your code is in error.
I only recently added code to catch ref-to-void in a template.
Jason
More information about the Gcc-bugs
mailing list