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

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

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

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hello,is it reproducible in simple case or just complex code? I haven't seen the issue before.--Vladimir

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

Leave a Comment

Please sign in to add a comment. Not a member? Join today