g++ 3.1 bug in optimization of ellipsis

Richard Henderson rth@redhat.com
Thu May 23 20:57:00 GMT 2002


On Thu, May 23, 2002 at 05:06:34PM +0200, Andrea Latina wrote:
> in the attached source I use the ellipsis to pass a variable number of 
> arguments to the constructor of a N-dimensional vector. When I compile 
> this source with optimization O1 or O2, I obtain an error:
> 
> test.cc: In function `int main()':
> test.cc:24: `va_start' used in function with fixed args

You should file a proper bug report so that this doesn't get lost.
The problem is that we inlined the varargs constructor inappropriately.


r~



More information about the Gcc-bugs mailing list