http://llvm.org/bugs/show_bug.cgi?id=20050
Reid Kleckner <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #1 from Reid Kleckner <[email protected]> --- MSVC gives the same diagnostic as clang. InterlockedExchangePointer() is a macro in both the Microsoft Windows 8 SDK and in mingw64, and MSVC errors on your example: $ cat t.cpp #include <windows.h> int main() { void *Dest; void *Value = 0; ::InterlockedExchangePointer(&Dest, Value); } $ cl -c t.cpp -nologo t.cpp t.cpp(5) : error C2589: '(' : illegal token on right side of '::' t.cpp(5) : error C2143: syntax error : missing ';' before '::' Does this code work with mingw gcc? If so it seems like gcc is accepting invalid code. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
