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.
7683 Discussions

icpx -fpermissive ICE in clang::Parser::ParseLexedMethodDeclaration

vzecca
Beginner
782 Views

The following code provokes an ICE in icpx Version 2021.1 NextGen Beta Build 20200304

Must be compiled with -fpermissive option.

// icpx -fpermissive ICE in clang::Parser::ParseLexedMethodDeclaration
class test {
template<typename> friend int bar(bool = true) { return 1; }
template<typename> friend int bar(bool);
};

0 Kudos
5 Replies
AbhishekD_Intel
Moderator
766 Views

Hi,


Thanks for reaching out to us.

We have tried the snippet of code you have provided and it seems a bug to us.

So we are forwarding this issue to the concerned team.


Thank you.


Varsha_M_Intel
Employee
737 Views

We are working on a fix. Will keep you posted.



PrasanthD_intel
Moderator
509 Views

Hi,


Thanks for your patience. The issue raised by you has been fixed in the latest OneAPI version 2021.2. Please download and let us know your experience with it.


Regards

Prasanth


vzecca
Beginner
500 Views

I get an error message

 

error: friend declaration specifying a default argument must be the only declaration

 

Please close this issue.

 

PrasanthD_intel
Moderator
467 Views

Hi Vittorio,


Thanks for the confirmation.

We are closing this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only


Regards

Prasanth


Reply