This is the mail archive of the 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]

Re: c++/890

I'm opening this to the list for comments. Bug 890 concerns the use of
incomplete (and pointers/references to incomplete) types in exception
specifiers. That is disallowed by [15.4/1], and the CVS tree rejects
such useage. However gcc 2.95.2 does accept it.

David John Mills wrote: 
> Is there any chance it could be made an option?  All previous versions
> of gcc have accepted it and I have over 1000000 lines of code with
> very many instances to change if it is no longer accepted (including a
> lot of third party code which will become a management nightmare).

Should this error be downgraded to a warning in the presence of

On a language level it does seem strange that one can declare
	struct X;
	void foo (X);
provided X is complete at the definition and call sites, but not do
the same for exception specifications. There don't appear to be any defect
reports about this. Opinions?

Dr Nathan Sidwell   ::   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?' : :

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