Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7679 Discussions

icpc + __int128_t + templates = internal error: 04010002_1504

walisch__kim
Beginner
181 Views

Hi,

OS: Ubuntu 18.04 x86_64
Compiler version: icpc (ICC) 18.0.2 20180210

I have run into an icpc compiler bug. Intel's C++ compiler fails to compile template functions which use the non-standard __int128_t or __uint128_t types. I ran into this bug when I tried to compile my primecount program (https://github.com/kimwalisch/primecount) using icpc. I have created a minimal C++ program (see attached bug.cpp) which reproduces the bug.

Steps to reproduce the bug:

$ icpc bug.cpp
bug.cpp(28) (col. 27): internal error: 04010002_1504
compilation aborted for bug.cpp (code 4)

Thanks for your help!

0 Kudos
1 Reply
Viet_H_Intel
Moderator
181 Views

Hi Kim,

Thanks for reporting this issue. I've submitted a bug to our developer. The case number is: CMPLRS-50210

Regards,

Viet

Reply