Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2421 Discussions

tbb::mutex & C1001 An internal error has occurred in the compiler

chkone
Beginner
163 Views
Hello,

I develop in C++ with VS2010 - SP1. To parallelize a part of my program I use tbb, parallel_for, and other stuff included in the library.
Now I need to use a mutex to securise my program.

But just a declaration of tbb::mutex Visual C++ say me :
error C1001: An internal error has occurred in the compiler.
And if I comment this line:
tbb::mutex oMutex;
The code compile without any Error or Warning.

Have you an idea to fix this trouble?

Thanks

Regards
0 Kudos
2 Replies
Vladimir_P_Intel2
163 Views
Hello,
is it reproducible in simple case or just complex code? I haven't seen the issue before.
--Vladimir
chkone
Beginner
163 Views
Indeed when I was comment my declaration of tbb::mutex the source code don't compile but when I revert and add my tbb::mutex the program compile. This an other problem not from tbb::mutex off course.

Thanks
Reply