GCC 3.3 release criteria
Fergus Henderson
fjh@cs.mu.OZ.AU
Tue Feb 25 15:42:00 GMT 2003
On 25-Feb-2003, Richard Earnshaw <rearnsha@arm.com> wrote:
>
> > Well, that interpretation is not that clear since that paragraph
> > specifically says the inline definition is an *alternative* to an
> > external definition. Clearly, a second translation unit may provide
> > a (second) external definition.
>
> Right, but it doesn't say that the definitions can be different;
The intent is certainly that the definitions can be different.
I know because I was involved in the committee discussions on this one.
Allowing the definitions to be different is needed to permit cases such
the use of assert() in an inline function in a header file which gets
included in different translation units with different settings of NDEBUG.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
More information about the Gcc
mailing list