Bug 1314545
Summary: | error: first argument to ‘va_arg’ not of type ‘va_list’ in C++ on s390(x) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dan Horák <dan> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 24 | CC: | davejohansen, jakub, jwakely, law, mpolacek | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | s390x | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-03-10 14:44:07 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 467765 | ||||||
Attachments: |
|
Description
Dan Horák
2016-03-03 21:18:57 UTC
It might be still an incorrect code, but why the result is inconsistent between arches? Doesn't have "stdarg" a specific implementation on s390(x)? cannot be reproduced with gcc 5.3 and -std=c++14 [sharkcz@devel6 ~]$ g++ -std=c++14 -O2 -Wall -c a.cc -o a.o a.cc: In constructor ‘A::A(const char*, ...)’: a.cc:14:7: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] int i; ^ [sharkcz@devel6 ~]$ rpm -q gcc-c++ gcc-c++-5.3.1-2.fc23.s390x Created attachment 1133167 [details]
preprocessed source file
with gcc-c++-6.0.0-0.14.fc24.s390x
and yes, removing the extra parentheses around the first argument in va_arg() makes the error go away There have been some G++ bugs relating to extra parens causing problems in C++14 mode, this looks like another of those. The problem went away when gcc-6.0.0-0.15.fc24 was used in the build. The fix is in gcc-6.0.0-0.15.fc24, closing. |