decl.c (grokfndecl): Require that `main' return an `int'.
authorMark Mitchell <mark@codesourcery.com>
Fri, 25 Aug 2000 07:28:36 +0000 (07:28 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 25 Aug 2000 07:28:36 +0000 (07:28 +0000)
commitf22967f31a37794d2c0cd754c7ec2437530217d2
treedeb6a046862e3bde00e49c3080c4a067b0da1f75
parent036cfb361a57d202ca5ea95d9551a20d1e1b5e91
decl.c (grokfndecl): Require that `main' return an `int'.

* decl.c (grokfndecl): Require that `main' return an `int'.
* mangle.c (write_encoding): Don't mangle return types for
conversion functions.

From-SVN: r35972
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/mangle.c
gcc/testsuite/g++.old-deja/g++.other/main2.C [new file with mode: 0644]