- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone, just tried to build a project in VS13/ICC14 and here is the result
1>source.cpp(88): error : access violation
1> vector<unaryFunction> unaryFunctions
1> ^
1>
Was just wondering what this could be. Oh, and the project builds just fine in MSVC and no I don't have locked files or readonly directories or anything like that.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Repro case - this does not compile
#include <vector>
#include <functional>
using namespace std;
typedef function<int(int)> unaryFunction;
vector<unaryFunction> funcs{ [](int n) { return n/2; } };
int main()
{
return 0;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post more details on access violation error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are no more details. It just fails on this particular code element. If there's some diagnostic mode in icl that can give more, let me know.
At any rate, this is happening on Windows, so you can try to repro it. It specifically fails on this C++11 construct (initializer list of functions).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>> If there's some diagnostic mode in icl that can give more, let me know.>>>
I do not know any diagnostic modes in ICL.I thought that in case of access violation error some information will be collected by OS(minidump file).Actually you can set windbg to perform JIT postmortem debugging.But if the error is clasified as internal compiler error only Intel devs should be troubleshooting it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, I've posted the issue here, so I hope the intel devs see it and do something about it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes I can reproduce the problem, and I've opened DPD200249985 to track the issue in our internal bugs database. Thanks for reporting the issue and the test case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Melanie Great! Will there be a hotfix or will one have to wait for the next service pack?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't answer schedule and release questions. Incidentally, I tried your test case on Linux with gcc 481 compatibility, and it compiled fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Postmortem debugging could help the developers to understand the origin of the exception or find the culprit of access violation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@dnestruk
What OS do you use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
iliyapolak Wed, 11/20/2013 – 06:30 @dnestruk What OS do you use?Windows 8
In case of a workaround this is how I usually isolate some issue specific to some release(s) of Intel C++ compiler: …Issue is in 3rd-party code, ergo this approach will not work.
I’d expect this to be a hotfix considering this is a showstopper bug on an ordinary initializer list which works just fine in latest MSVC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bug fix for this problem will be shipped in a upcoming release of Compiler 14.0 .The natural of the problem is vector dtor is not getting selected and not generated during the lowering in Front-end.
Thank you.
--
QIAOMIN.Q
Intel Developer Support
User forums: http://software.intel.com/en-us/forums/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@dnesteruk
do you have a dump file?

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