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: C++ PATCH to be lenient about incomplete types in exception-specifiers


Jason Merrill wrote:
> 
> This patch reduces the error for an incomplete type in an
> exception-specifier to a pedwarn, and adds an error for calling a function
> with such a spec.  C++ only requires argument types to be complete at the
> points of definition and call; the same seems appropriate for EH specs.
1) does it require them to be complete at the function definition? (it should)
2) Checking the eh specs on every call will slow the compiler down.
Is there a spare bit 'DECL_EH_MAY_CONTAIN_INCOMPLETE', perhaps it
could be placed in the eh list. Then you'd only need to check when there
had been an incomplete during construction.

nathan

-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org


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