Bug 114865

Summary: va_list assignment error
Product: [Fedora] Fedora Reporter: Sean Dilda <agrajag>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-02-09 14:08:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Simple test case that fails to compile on x86_64 none

Description Sean Dilda 2004-02-03 18:32:36 UTC
When using fc1-test1 for x86_64, I receive an ' error: incompatible
types in assignment' from gcc when I try to assign the value of one
va_list variable to another.  This does not happen on an x86 box
running fc1.

Attached is a small test case that does nothing useful, but it will
error if you try to compile it on x86_64, but not on x86.

Comment 1 Sean Dilda 2004-02-03 18:33:37 UTC
Created attachment 97444 [details]
Simple test case that fails to compile on x86_64

Comment 2 Jakub Jelinek 2004-02-09 14:08:28 UTC
That testcase is buggy, you cannot do that.
If you need to copy va_list objects, you need to use va_copy.
See man va_copy for example, or ISO C.