[llvm-bugs] [Bug 25984] New: Clang-cl does not support /DMYDEF#value

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 31 09:11:30 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25984

            Bug ID: 25984
           Summary: Clang-cl does not support /DMYDEF#value
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jvapen at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Ref https://msdn.microsoft.com/en-us/library/hhzbb5c8.aspx
The syntax of defining constants via the command line of MSVC supports both
/DMYDEF=0 as /DMYDEF#0

Clang-cl only supports the first one.
If you use the second one, I get the following warning.

Error given by clang-cl of version 3.5:
<command line>(10,14): warning : ISO C99 requires whitespace after the macro
name [-Wc99-extensions]
  #define MYDEF#0 1

Note: I have also noticed this already in the latest builds of 3.8, though for
this reproduction, I have not yet upgraded my compiler.

-- 
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/20151231/4095c7c5/attachment-0001.html>


More information about the llvm-bugs mailing list