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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 11 10:26:19 PST 2012


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

Aaron Ballman <aaron at aaronballman.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |aaron at aaronballman.com
         Resolution|                            |WORKSFORME

--- Comment #1 from Aaron Ballman <aaron at aaronballman.com> 2012-02-11 12:26:19 CST ---
Works for me in ToT (r150306)

c:\llvm>clang -fsyntax-only -std=c++11 "C:\Users\Aaron
Ballman\Desktop\test.cpp"
C:\Users\Aaron Ballman\Desktop\test.cpp:1:1: error: 'main' is not allowed to be
declared constexpr
constexpr int main() { return 0; }
^~~~~~~~~
1 error generated.

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