Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

iomanip error

Patrick_N_
Beginner
570 Views
COMPILER: icpc --version
icpc (ICC) 12.0.0 20101006
OS: opensuse 11.3, 64bit system
the problem:
icpc xxx.cc
/usr/include/c++/4.5/iomanip(64): error: expected an expression
{ return { __mask }; }
^

/usr/include/c++/4.5/iomanip(94): error: expected an expression
{ return { __mask }; }
^

/usr/include/c++/4.5/iomanip(125): error: expected an expression
{ return { __base }; }
^

/usr/include/c++/4.5/iomanip(193): error: expected an expression
{ return { __n }; }
^

/usr/include/c++/4.5/iomanip(223): error: expected an expression
{ return { __n }; }
^

compilation aborted for x.cc (code 2)
======================================================
Here is the file xxx.cc :
#include
using namespace std;
#include
int main(){
return 0;
}
========================================================

Intel promised to fix this error in the version 12 compiler release (the issue was discussed in the ver 11 forums, where it was announced by Intel that the fix would appear in ver 12). I expect that this fix has actually been made, but I do not know how to invoke the fix.

Please point me to the documentation/information regarding this issue.
Thanks.

0 Kudos
4 Replies
TimP
Honored Contributor III
570 Views
I'll attach your report to the issue. This should help get it checked.
Sure enough, when I put gcc-4.5.1 on the path on Red Hat 6, I still see the problem.
My problem report search tool isn't showing the closed issue, so I asked for it to be found and rechecked.
0 Kudos
Lingfeng_C_Intel
Employee
570 Views

Hi Patrick,
Please see below output I tried in my environment.
I didn't find error message here.

Thanks,
Wise

[wchen18@dpd26 610072]$ cat x.cc
#include
using namespace std;
#include
//using namespace std;
int main(){
return 0;
}

[wchen18@dpd26 610072]$ icpc -V x.cc
Intel C++ Intel 64 Compiler XE for applications running on Intel 64, Version 12.0.0.084 Build 20101006
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.

Edison Design Group C/C++ Front End, version 4.1 (Oct 6 2010 18:42:54)
Copyright 1988-2009 Edison Design Group, Inc.

GNU ld version 2.18.50.0.6-7.fc9 20080403
[wchen18@dpd26 610072]$

0 Kudos
TimP
Honored Contributor III
570 Views
Wise,
It has been known from when this question was first posted that icpc 11.1 and later were compatible with of g++ 4.4.4 and earlier. I got responses to premier.com issue that it was corrected in 12.0, but we see it has not been corrected, and the issue was closed and deleted from history without waiting for us to check it. As you don't give the important information, we must assume that you are using an older g++ which is known to work with icpc.
0 Kudos
TimP
Honored Contributor III
570 Views
Wise answered, and I verified, that the current is supported when -std=c++0x is set. I'm sorry that we hadn't been informed earlier that icpc considers this feature to be reserved for the partial c++0x support.
0 Kudos
Reply