- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When compiling the following code with icpc 12.1.0:
const int MAX_INT = 3;
template
class MyClass {
protected:
int array[MAX_INT];
};
int main()
{
#pragma omp parallel sections
{
#pragma omp section
{
MyClass mc;
}
}
}
I get the error:
test.C(6): internal error: assertion failed: find_assoc_pragma: pragma not found (shared/cfe/edgcpfe/il.c, line 19440)
int array[MAX_INT];
^
compilation aborted for test.C (code 4)
Here is how to build it:
/ll/3rdptysw/intel.v12/composer_xe_2011_sp1.6.233/bin/intel64/icpc test.C -o test -openmp -openmp-lib=compat
This error does not occur with version 10 or 11 of the intel compiler.
const int MAX_INT = 3;
template
class MyClass {
protected:
int array[MAX_INT];
};
int main()
{
#pragma omp parallel sections
{
#pragma omp section
{
MyClass
}
}
}
I get the error:
test.C(6): internal error: assertion failed: find_assoc_pragma: pragma not found (shared/cfe/edgcpfe/il.c, line 19440)
int array[MAX_INT];
^
compilation aborted for test.C (code 4)
Here is how to build it:
/ll/3rdptysw/intel.v12/composer_xe_2011_sp1.6.233/bin/intel64/icpc test.C -o test -openmp -openmp-lib=compat
This error does not occur with version 10 or 11 of the intel compiler.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for reporting it and also thanks for a small testcase.
I can duplicate this issue on Windows using 12.0 update 4 and update 6 (12.1).
If I replace "MAX_INT" with "3" in the template class, it compiles ok.
Let me file a ticket to the compiler.
Thanks,
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This issue has been fixed in the Intel C++ ComposerXE update 9. It is available for download at the Intel Registration Center.
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
An 'array' type is a built-in type formany C/C++ compilers for a long time and I wonder ifthe problemwas related to that.
Best regards,
Sergey
Best regards,
Sergey
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page