Compiler reports error #803 when compiling Chromium OS* code

Reference Number : DPD200162064

Version : 12.0

Product : Intel® C++ Compiler XE Version 12.0

Operating System : Ubuntu* Linux*

Problem Description : The compiler reports the error below when compiling Chromium OS* code:

v8/src/ error #803: function "v8::internal::Dictionary<Shape, Key>::Allocate [with Shape=v8::internal::NumberDictionaryShape, Key=uint32_t={unsigned int}]" explicitly instantiated more than once
template MaybeObject* Dictionary<NumberDictionaryShape, uint32_t>::Allocate(

Resolution Status : This is a known issue that may be resolved in a future product update.  As a workaround, please disable the diagnostic using the -wd803:


$ cat t.cpp

template <class T>
struct C {
void foo() {;}

template void C<int>::foo();
template class C<int>;

$ icc -c t.cpp
t.cpp(7): error #803: function "C<T>::foo [with T=int]" explicitly instantiated more than once
template class C<int>;

compilation aborted for t.cpp (code 2)

$ icc -c t.cpp -wd803

[DISCLAIMER: The information on this web site is intended for hardware system manufacturers and software developers. Intel does not warrant the accuracy, completeness or utility of any information on this site. Intel may make changes to the information or the site at any time without notice. Intel makes no commitment to update the information at this site. ALL INFORMATION PROVIDED ON THIS WEBSITE IS PROVIDED "as is" without any express, implied, or statutory warranty of any kind including but not limited to warranties of merchantability, non-infringement of intellectual property, or fitness for any particular purpose. Independent companies manufacture the third-party products that are mentioned on this site. Intel is not responsible for the quality or performance of third-party products and makes no representation or warranty regarding such products. The third-party supplier remains solely responsible for the design, manufacture, sale and functionality of its products. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. *Other names and brands may be claimed as the property of others.]
For more complete information about compiler optimizations, see our Optimization Notice.