- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
During the most recent compile, I received the following warning repeatedly:
warning #980: worng number of actual arguments to intrinsic function "mangled function name"
I have been unable to find any support or documentation on this warning. It seems to occur on source code with streams (such as cout, ifstream, etc.), and occurs most often on lines with a std::endl.
Has this occured for anyone else, and are there any measures to eliminate this warning from occuring besides simply ignoring it?
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Line 171 is as follows:
std::cerr << "Production Line running. Must stop PL " << name << " in order to cleanup!!!" << std::endl;
The column in question is the last < before std::endl; (so you don't have to count yourelf).
Also, we have seen this on other lines that referenced ifstreams, such as:
ifstream input(filename);
We are using the v9.1.043 version of the compiler. We have tried v10, however, there are problems building due to commercial software we are using that is not yet supported.
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not able to duplicate this problem with a simple test or a atl-mfc project.
Could you submit this to PremierSupport so we can work on getting a testcase? if you could provide one, it would be really great.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OS: RedHat Linux AS 4.5
Kernel: 2.6.9-55.EL
gcc: 3.2.3-47.3
glibc:2.3.4-2.25
Thanks for your support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We had 1 customer report this with the 9.1 compiler, but we weren't able to reproduce. If you can create a testcase and submit it to https://premier.intel.com we will investigate this. If possible, can you ask the 3 developers that see this problem to create a preprocessed file (icc -P file.cpp, creates file.i) and see if the problem reproduces on the machine that had the problem, and on your system ?
Regards,
_|ohnO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We were finally able to produce this problem under a controlled situation. I was not able to access the premier site for some reason, so I hope this post is still being reveiwed.
PATH=/opt/intel/cc/9.1.043/bin:/usr/bin
LD_LIBRARY_PATH=
RedHat Linux 4.5 (kernel 2.6) Itanium2
gcc-3.4.6-8
glibc-2.3.4-2.36
Build: icpc -O2 -ip test.cc -o test
#include
using namespace std;
int main() {
cout << "Hello" << endl;
}
Thanks for your support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This appears to have been fixed in 10.0 and more recent compilers. If you continue to see this problem with recent compilers, please let us know.
Thanks!
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get this when instantiating:
#define PAUSE() do {cerr << "PAUSED" << endl; std::cin.get(); } while (0)
which should match the first overloaded get() function listed here
http://www.cppreference.com/wiki/io/get
Oren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get this when instantiating:
#define PAUSE() do {cerr << "PAUSED" << endl; std::cin.get(); } while (0)
which should match the first overloaded get() function listed here
http://www.cppreference.com/wiki/io/get
Oren
C:C++>cat wng_intrin.cpp
#include
using namespace std;
#define PAUSE() do {cerr << "PAUSED" << endl; std::cin.get(); } while (0)
int main(void)
{
PAUSE();
return 0;
}
C:C++>icl wng_intrin.cpp
Intel C++ Compiler Professional for applications running on IA-32, Version 11.0 Build 20090131 Package ID: w_cproc_p_11.0.072
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
wng_intrin.cpp
Microsoft Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
-out:wng_intrin.exe
wng_intrin.obj
C:C++>wng_intrin.exe
PAUSED
^C
C:C++>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
C:C++>cat wng_intrin.cpp
#include
using namespace std;
#define PAUSE() do {cerr << "PAUSED" << endl; std::cin.get(); } while (0)
int main(void)
{
PAUSE();
return 0;
}
C:C++>icl wng_intrin.cpp
Intel C++ Compiler Professional for applications running on IA-32, Version 11.0 Build 20090131 Package ID: w_cproc_p_11.0.072
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
wng_intrin.cpp
Microsoft Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
-out:wng_intrin.exe
wng_intrin.obj
C:C++>wng_intrin.exe
PAUSED
^C
C:C++>
Thanks for trying it. I don't know why I get that warning, but it does not appear to have any ill effects.
I will try to come up with a test case. . .
Oren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page