This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/1862
- To: nobody at gcc dot gnu dot org
- Subject: Re: c++/1862
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- Date: 17 Feb 2001 20:56:02 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Craig Rodrigues <rodrigc at mediaone dot net>
The following reply was made to PR c++/1862; it has been noted by GNATS.
From: Craig Rodrigues <rodrigc@mediaone.net>
To: khuang@sympatico.ca, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org,
rodrigc@mediaone.net
Cc:
Subject: Re: c++/1862
Date: Sat, 17 Feb 2001 15:50:06 -0500
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1862&database=gcc
Tested with:
gcc version 2.97 20010211 (experimental)
from http://www.codesourcery.com/gcc-snapshots/
under i386 Linux.
Compiling yielded the error:
test.cc:12: `main' must return `int'
Changing you main() to return an int:
#include "stdio.h"
class myclass
{
public:
int x;
int y;
};
int main(void)
{
myclass x;
x.x=7;
x.y=8;
return 0;
}
Compiled and ran fine with no errors/warnings.
Perhaps the person who created the gcc package
for you created a package with errors in it?
Should this report be closed?
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net