Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7957 Discussions

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

vzecca
Beginner
1,336 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
1,320 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.


0 Kudos
Varsha_M_Intel
Employee
1,291 Views

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



0 Kudos
PrasanthD_intel
Moderator
1,063 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


0 Kudos
vzecca
Beginner
1,054 Views

I get an error message

 

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

 

Please close this issue.

 

0 Kudos
PrasanthD_intel
Moderator
1,021 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


0 Kudos
Reply