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

icpx -fpermissive ICE in std::__1::default_delete<llvm::APFloat

vzecca
Beginner
1,427 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 std::__1::default_delete<llvm::APFloat
enum flag { OFF, ON };
enum BOOL { FALSE = (enum flag) 0, TRUE };

0 Kudos
8 Replies
PrasanthD_intel
Moderator
1,416 Views

Hi Vittorio,

We have checked this code and didn't get any error while trying to compile with icpx.

We have tested with the same version and also with the latest version.

I have attached a screenshot which contains the code and the result.

Can you please give us a reproducible code so we can check if we had missed anything?

Also if possible please upgrade to latest version and check if you are getting error.

 

Regards

Prasanth

0 Kudos
vzecca
Beginner
1,408 Views

Did you compile with -fpermissive option as I asked you,

and it is repeated in the first line of the source code?

I could not see it in the screenshot.

0 Kudos
Viet_H_Intel
Moderator
1,398 Views

You won't see the crash anymore with newer icpx versions.

$ icpx t9.cpp -c -fpermissive -V

Intel(R) oneAPI DPC++/C++ Compiler Pro for applications running on Intel(R) 64, Version 2021.1 Beta Build 20200827

Copyright (C) 1985-2020 Intel Corporation. All rights reserved.


error: unknown argument: '-gnu-permissive'

$



0 Kudos
vzecca
Beginner
1,388 Views

How can I download the latest version of icpx build 20200827?

My license expires on September 30.

0 Kudos
Viet_H_Intel
Moderator
1,380 Views

You should be able to download the latest version from https://registrationcenter.intel.com/,


0 Kudos
Viet_H_Intel
Moderator
1,128 Views

Let us know if this is still an issue. Otherwise, we will close it.


Thanks,


0 Kudos
vzecca
Beginner
1,122 Views
0 Kudos
Viet_H_Intel
Moderator
1,116 Views

This issue has been resolved and we will no longer respond to 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.

Thanks,


0 Kudos
Reply