Bug 114865 - va_list assignment error
Summary: va_list assignment error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-03 18:32 UTC by Sean Dilda
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-02-09 14:08:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Simple test case that fails to compile on x86_64 (62 bytes, text/plain)
2004-02-03 18:33 UTC, Sean Dilda
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.