This is the mail archive of the gcc-prs@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]

Re: c++/1862


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
 
 


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