range based for strange error

range based for strange error

ICC 13 update 1 fails on this code:

int b;
for(int x : b);

With this error:

internal error: assertion failed at: "shared/cfe/edgcpfe/overload.c", line 8257

So icc fails if second argument have not begin/end members.

I think there should be error like this: error class `int' doesn't have member begin(end)

7 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Hi Bert,

i have write a dummy program with your code snipped and become the message look at attach

franz

附件: 

附件尺寸
下载 snapshot7.png280.89 KB

Hi Bert,
I was NOT able to reproduce the error "internal error: assertion failed at: "shared/cfe/edgcpfe/overload.c", line 8257" with icc 13.0 update 1. Could you please help me with the output of following commands:-

1. icc -V
2. icc -v ('v' -> in lower case).
3. cat /etc/issue

Regards,
Sukruth H V

I'm on windows.

Intel(R) C++ Compiler XE for applications running on IA-32, Version 13.0 Build 2
0121008
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.

Hi Bert,
Sure. I was able to reproduce the issue now. Thanks for the info. I would submit this issue to my development team and would update once this is been fixed.

Regards,
Sukruth H V

Hi Bert,
I have submit this issue to my development team (DPD200239729). Thanks for your patience.

Regards,
Sukruth H V

Hi Bert,

             The issue is fixed in latest 15.0 compiler. Please download it from registrationcenter.intel.com.

Regards,
Sukruth H V

发表评论

登录添加评论。还不是成员?立即加入