Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.

Local variables (F32vec4) show incorrectly in VS2012 debugger

Harald_Deischinger
162 Views

See the following example code:

[embed]
#include <fvec.h>

int main(int argc, char* argv[])
{
    F32vec4 a(1.0f);
    int b = 1;
    return 0;
}
[/embed]

Setting a breakpoint in the b=1 line and watching the value of a only shows garbage in VS2012 when the code is compiled uing Intel compiler.
When the code is compiles using Microsoft compiler, everything is looking fine.

See also attached screenshot.

Any Ideas?

harald

PS: Versions in use:
Microsoft Visual Studio Professions 2013, 11.0.60610.01 Update 3
Intel C++ Composer XE 2013, Package ID: w_ccompxe_2013.0.089

0 Kudos
2 Replies
Bernard
Black Belt
162 Views

What has been highlighted in your screenshot looks like registers context maybe improperly interpreted by VS2012 debugger.

Harald_Deischinger
162 Views

good news - it seems that this is fixed with SP1.

Reply