[LLVMbugs] [Bug 19444] Set a define when using -fms-extensions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 16 09:59:48 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19444

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |WORKSFORME

--- Comment #2 from Reid Kleckner <rnk at google.com> ---
Look for _MSC_EXTENSIONS:

$ clang++ -fno-ms-extensions -dM -E -x c - < /dev/null | grep MSC_EXT
$ clang++ -fms-extensions -dM -E -x c - < /dev/null | grep MSC_EXT
#define _MSC_EXTENSIONS 1

Clang will turn on -fms-extensions by default when targeting Windows, so that
may have fooled your test.

Also, you can use the C++11 standard keyword 'final' instead of 'sealed', which
is what MSDN recommends:
http://msdn.microsoft.com/en-us/library/0w2w91tf.aspx

clang-cl defaults to C++11, since MSVC's C++11 support is enabled by default.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140416/f1cedd31/attachment.html>


More information about the llvm-bugs mailing list