[llvm-bugs] [Bug 41144] New: Target.h #defines the inline keyword

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 19 13:19:31 PDT 2019


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

            Bug ID: 41144
           Summary: Target.h #defines the inline keyword
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: brucedawson at chromium.org
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

In llvm\include\llvm-c\Target.h there is a conditional #define of inline as
__inline. Doing a #define of C++ keywords is illegal and the VC++ 2017
keycheck.h enforces this. This has led to a build break in ARM64 Win32 builds
of Chromium (see crbug.com/943373).

The #define should either be removed or should be scoped to only occur when
compiling for C, or some-such.

-- 
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/20190319/099d1bd7/attachment.html>


More information about the llvm-bugs mailing list