This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/10569: use typedef type as return from main yields warning


Old Synopsis: use typedef type as return from main
New Synopsis: use typedef type as return from main yields warning

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Apr 30 18:02:19 2003
State-Changed-Why:
    Confirmed with present 3.4. The standard says in 3.6.1.2:
    
    An implementation shall not predefine the main function.   This  func-
      tion  shall  not  be  overloaded.  It shall have a return type of type
      int,...
    I can't say whether this rules out having a typedef to
    int instead. I think the answer is: don't do it, there's
    no good reason for such bogosity.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10569


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]