Community
cancel
Showing results for 
Search instead for 
Did you mean: 
vzecca
Beginner
377 Views

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

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
361 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
332 Views

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



PrasanthD_intel
Moderator
104 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
95 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
62 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