[LLVMbugs] [Bug 10419] New: 'main' function with unusual signature cannot be compiled
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jul 20 00:43:40 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10419
Summary: 'main' function with unusual signature cannot be
compiled
Product: clang
Version: 2.9
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: andrew.sampson at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
A 'main' function with an unusual signature cannot be compiled due to
Sema::CheckMain(). In my case, NPAPI on MacOSX requires a main function to be
exported with an unusual signature, but it will not compile with clang. Suggest
the addition of a flag to suppress this error, or turn it into a warning only.
For instance, this main function cannot be compiled:
int main(NPNetscapeFuncs *browserFuncs, NPPluginFuncs *pluginFuncs,
NPP_ShutdownProcPtr *shutdown) { return 0; }
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list