[LLVMbugs] [Bug 11755] New: clang allows declaring main constexpr

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 12 18:47:37 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11755

             Bug #: 11755
           Summary: clang allows declaring main constexpr
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Testcase:

constexpr int main() { return 0; }

This is illegal per [basic.start.main]p3.

-- 
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