iomanip error

iomanip error

patrick.nash@utsa.edu's picture

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.

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Tim Prince's picture

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.

Wise Chen (Intel)'s picture

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]$

Tim Prince's picture

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.

Tim Prince's picture

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.

Login to leave a comment.