- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does the explicit keyword work in 7.0? More specifically will this snippit fail:
struct Asdf {
explicit Asdf(const int = 0) {}
};
Asdf foo()
{
// supposed to error here
return 4;
}
void foo2()
{
// supposed to error here too
Asdf i = 4;
}
void foo3()
{
Asdf i;
// 6.0 detects this
i = 4;
}
struct Asdf {
explicit Asdf(const int = 0) {}
};
Asdf foo()
{
// supposed to error here
return 4;
}
void foo2()
{
// supposed to error here too
Asdf i = 4;
}
void foo3()
{
Asdf i;
// 6.0 detects this
i = 4;
}
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For best results, I think you should file a Quad.
Our 7.0 compiler detects the error at 21, but does not at 8 and 14. Our 7.0 Linux compiler detects the errors at 8,14, and 21.
It seems MSVC 7X detects errors at 8, 14, and 21. MSVC 6 detects errors at 14 and 21.
I would conclude that there's an issue to look at with icl.
Max
[Intel Compiler Team]
Our 7.0 compiler detects the error at 21, but does not at 8 and 14. Our 7.0 Linux compiler detects the errors at 8,14, and 21.
It seems MSVC 7X detects errors at 8, 14, and 21. MSVC 6 detects errors at 14 and 21.
I would conclude that there's an issue to look at with icl.
Max
[Intel Compiler Team]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does that mean the linux and windows versions come from separate code bases? I was hoping to see some gcc extensions in the windows version in the future (and I'm sure __declspec(property) would be nice in the linux version if it doesn't support that already). By the way, what does "filing a Quad" mean and how do I go about doing that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
QuAD refers to the name which the Intel bug reporting site had some time prior to when I was hired. Open up an account on https://premier.intel.com and submit a report. Under "all products" you should be prompted to select the appropriate compiler category. You will be asked to run the command line program icid, e.g. from the Intel compiler environment command line window, to determine which software versions are active, as part of your submission.
I, too, would like to see more gcc compatibility in the Windows compiler, but Microsoft and standards compatibility are far higher priorities. Your requests might get more attention if you emphasize how they improve portability of your application between Intel Windows and linux compilers.
I, too, would like to see more gcc compatibility in the Windows compiler, but Microsoft and standards compatibility are far higher priorities. Your requests might get more attention if you emphasize how they improve portability of your application between Intel Windows and linux compilers.
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