[LLVMbugs] [Bug 18541] Using the main function in a program is	allowed
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Wed Jan 22 16:46:27 PST 2014
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=18541
Richard Smith <richard-llvm at metafoo.co.uk> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |FIXED
--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Fixed in r199782. For compatibility with GCC and IOCCC entries, we still
silently accept this outside -pedantic mode. With -pedantic-errors, we produce:
<stdin>:1:25: error: ISO C++ does not allow 'main' to be used by a program
[-Werror,-Wmain]
int main() { auto *x = &main; x(); }
                        ^
-- 
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/20140123/f98b9dcf/attachment.html>
    
    
More information about the llvm-bugs
mailing list