This is the mail archive of the gcc@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 pre-DR#8: va_list objects


"Joseph S. Myers" <jsm@polyomino.org.uk> writes:

> This pre-DR is for the question Jakub raised in 
> <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02802.html> of the validity 
> of using arrays of va_list (which cause an ICE on some platforms; bug 
> 17716) and structures containing va_list.  It's clear what the semantics 
> should be for the use of any lvalue for an object of type va_list, and as 
> a quality of implementation matter we should accept uses with any such 
> expression and compile them correctly without ICE, but it isn't clear 
> whether they are strictly valid (though if not I think that is more likely 
> an oversight in the standard than a deliberate decision).

Note that even if there does have to be a va_list declared in the function,
arrays of va_list and structures containing them must still work because
the function (or a called function) could use va_copy with them.


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