c++/2663

Peter Keller psilord@cs.wisc.edu
Fri Apr 27 09:26:00 GMT 2001


The following reply was made to PR c++/2663; it has been noted by GNATS.

From: Peter Keller <psilord@cs.wisc.edu>
To: Nathan Sidwell <nathan@codesourcery.com>
Cc: nathan@gcc.gnu.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Subject: Re: c++/2663
Date: Fri, 27 Apr 2001 11:23:09 -0500

 On Fri, Apr 27, 2001 at 04:26:49PM +0100, Nathan Sidwell wrote:
 > Peter Keller wrote:
 > > This code used to be legal in 2.95.2.
 > it used to be silently accepted, on some systems bad things would happen
 
 I see, and the reason is because since it is a var_arg, if you pass a real
 int on the stack that isn't a member of the enumeration type, the result
 is undefined with respect to the va_arg's use of the enum type.
 
 Would that be a correct analysis?
 
 Thank you.
 
 -pete



More information about the Gcc-prs mailing list