[llvm-bugs] [Bug 39061] New: internal-linkage variable named 'main' rejected

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 24 10:54:36 PDT 2018


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

            Bug ID: 39061
           Summary: internal-linkage variable named 'main' rejected
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

A program containing this is ill-formed:

int main = /*...*/;

However, this appears to be valid:

static int main = /*...*/;

Clang rejects both.

-- 
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/20180924/cb188fda/attachment.html>


More information about the llvm-bugs mailing list