- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The following program does not output anything when compiled with icpc 15.0.2.132, with the flags "-std=c++11 -c -Wall":
extern int foo(char*);
int main() {
foo("C");
return 0;
}
In comparison, here is the output with g++ 4.9.2:
cpp:4:12: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
And with clang 3.5:
cpp:4:9: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wc++11-compat-deprecated-writable-strings]
Thank you.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You're correct that icpc is not issuing a warning. Let me investigate and get back to you.
_Kittur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I've filed this issue with the developers and will get back to you as soon as I've an update, thanks.
_Kittur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pleasure, and thanks for bring this to our attention as this is a bug in the compiler. I'll keep you updated as soon as the release with the fix is out, appreciate much.
_Kittur

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