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: unassignedclangb...@nondot.org
          Reporter: richard-l...@metafoo.co.uk
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to