Unexpected nvc++ (24.11) "dinit" compiler error with __m128 zero init

Hi,

Compiling the C++ program below fails with the error message shown. I am using NVHPC SDK 24.11 on Ubuntu 24.04.1 LTS.

#include <immintrin.h>
__m128 A[1] = {};
$ nvc++ -c -V24.11 nvcpp-bug-zero-init.cpp 
NVC++-F-0000-Internal compiler error. dinit: missing sub-initialization       0  (nvcpp-bug-zero-init.cpp)
NVC++/x86-64 Linux 24.11-0: compilation aborted

Cheers,
Paul

Thanks Paul.

I was able to recreate the issue and have filed a problem report, TPR#37004.

-Mat

1 Like

Hi Paul,

Engineering let me know that TPR#37004 was fixed in our 25.3 release.

Thanks again for the report.

-Mat

% nvc++ -V25.1 -c test2.cpp
NVC++-F-0000-Internal compiler error. dinit: missing sub-initialization       0  (test2.cpp)
NVC++/x86-64 Linux 25.1-0: compilation aborted
% nvc++ -V25.3 -c test2.cpp
%