Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

internal error: assertion failed at: "shared/cfe/edgcpfe/folding.c"

$
0
0

Hello,

From v16 update 3 on the following code generates an error, for code wich looks valid:

>icl main.cpp
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.2.187 Build 20170213
Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.

main.cpp
main.cpp(8): internal error: assertion failed at: "shared/cfe/edgcpfe/folding.c", line 8623

        if (__has_assign(R))
                         ^

compilation aborted for main.cpp (code 4)

 

The code in question is:

#include <stdio.h>

struct R {
	void operator=(R& r) {}
};

int main() {
	if (__has_assign(R))
		printf("success\n");
	else
		printf("fail\n");

	return 0;
}

The problem is that with my project similar code comes from the product SDK headers to which we integrate and don't have control of.

Best regards,

Alexander

AttachmentSize
Downloadtext/x-c++srcmain.cpp172 bytes

Zone: 

Thread Topic: 

Bug Report

Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>