Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Bert_Jonson
Beginner
122 Views

range based for strange error

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
122 Views

Hi Bert, i have write a dummy program with your code snipped and become the message look at attach franz
Sukruth_H_Intel
Employee
122 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
Bert_Jonson
Beginner
122 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.
Sukruth_H_Intel
Employee
122 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
Sukruth_H_Intel
Employee
122 Views

Hi Bert, I have submit this issue to my development team (DPD200239729). Thanks for your patience. Regards, Sukruth H V
Sukruth_H_Intel
Employee
122 Views

Hi Bert,

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

Regards,
Sukruth H V

Reply