- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ICL Version 13.0.1.119 Build 20121008
[cpp]
#include <vector>
int main()
{
std::vector<int> v;
for ( auto& x : v.size() )
++x;
}
[/cpp]
results in
[plain]
missing_error_message.cpp
missing_error_message.cpp(5): internal error: assertion failed at: "shared/cfe/edgcpfe/overload.c", line 8257
for ( auto& x : v.size() )
^
[/plain]
Could be a friendlierr error message.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for reporting this. This is being tracked in our bug database as DPD200239305. It is fixed in our under development compiler so you should see the fix in our next major release. This will be the error message:
!% icl -Qstd=c++11 -c bug.cpp
Intel(R) C++ Compiler XE for applications running on IA-32, Version Mainline Bet
a Build x
Built Nov 21 2012 19:44:17 by jward4 on JWARD4-DESK in D:/workspaces/45cfe/dev
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
bug.cpp
bug.cpp(7): error: this range-based "for" statement requires a suitable "begin"
function and none was found
for ( auto& x : v.size() )
^
bug.cpp(7): error: this range-based "for" statement requires a suitable "end" fu
nction and none was found
for ( auto& x : v.size() )
^
compilation aborted for bug.cpp (code 2)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page