Gabest wrote:
Done.
http://lab.msdn.microsoft.com/produc...a-32821fc49691
You might have taken the time to post a complete repro (there's no standard
include file named stdafx.h) or to actually fill out all the fields...
In any case, I'm unable to reproduce the problem with your sample. How
'bout a few more repro steps, such as the exact command-line arguments to
the compiler?
Here's what I get:
C:\Pub\Dev\cppbugs>cl -MD -arch:SSE2 -openmp ompalign0513.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50215.44 for
80x86
Copyright (C) Microsoft Corporation. All rights reserved.
ompalign0513.cpp
Microsoft (R) Incremental Linker Version 8.00.50215.44
Copyright (C) Microsoft Corporation. All rights reserved.
/out:ompalign0513.exe
ompalign0513.obj
C:\Pub\Dev\cppbugs>ompalign0513
thread_num=0, i=0, buff=0012FB90
thread_num=2, i=8, buff=00AEFE30
thread_num=3, i=12, buff=00BEFE30
thread_num=3, i=13, buff=00BEFE30
thread_num=0, i=1, buff=0012FB90
thread_num=0, i=2, buff=0012FB90
thread_num=0, i=3, buff=0012FB90
thread_num=3, i=14, buff=00BEFE30
thread_num=2, i=9, buff=00AEFE30
thread_num=2, i=10, buff=00AEFE30
thread_num=3, i=15, buff=00BEFE30
thread_num=1, i=4, buff=009EFE30
thread_num=1, i=5, buff=009EFE30
thread_num=2, i=11, buff=00AEFE30
thread_num=1, i=6, buff=009EFE30
thread_num=1, i=7, buff=009EFE30
-cd