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

range based for strange error

Bert_Jonson
Beginner
464 Views

ICC 13 update 1 fails on this code:

[cpp]int b;

for(int x : b);[/cpp]

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)

0 Kudos
6 Replies
bernaske
New Contributor I
464 Views
Hi Bert, i have write a dummy program with your code snipped and become the message look at attach franz
0 Kudos
Sukruth_H_Intel
Employee
464 Views
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
0 Kudos
Bert_Jonson
Beginner
464 Views
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.
0 Kudos
Sukruth_H_Intel
Employee
464 Views
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
0 Kudos
Sukruth_H_Intel
Employee
464 Views
Hi Bert, I have submit this issue to my development team (DPD200239729). Thanks for your patience. Regards, Sukruth H V
0 Kudos
Sukruth_H_Intel
Employee
464 Views

Hi Bert,

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

Regards,
Sukruth H V

0 Kudos
Reply