Summary: | drd regression tests fail to compile with Intel compiler | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Tanya <tatyana.a.volnina> |
Component: | drd | Assignee: | Bart Van Assche <bart.vanassche+kde> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | minor | CC: | tatyana.a.volnina |
Priority: | NOR | ||
Version First Reported In: | 3.10 SVN | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Proposed workaround |
Description
Tanya
2015-12-21 18:23:28 UTC
Created attachment 96238 [details]
Proposed workaround
Comment on attachment 96238 [details] Proposed workaround >--- valgrind-3.11.0/drd/tests/std_string.cpp 2015-09-08 16:23:31.000000000 +0300 >+++ valgrind-3.11.0/drd/tests/std_string.cpp 2015-12-15 21:47:14.114795475 +0300 >@@ -35,7 +35,13 @@ > { > for (int i = 0; i < 100; i++) { > std::string id("000"); >+#ifdef __INTEL_COMPILER >+// Intel compiler (version 15.0.3 - 16.0.0) fails to compile the following line due to a compiler bug >+// A known workaround is to use double instead of int >+ id.append(1.0, 'a' + i); >+#else > id.append(1, 'a' + i); >+#endif > std::list<std::string> record; > record.push_back("some data"); > addRecord(); Please reopen this bug if this behavior is reproducible with the latest version of the Intel compiler. |