This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ compile error
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: g++ compile error
- From: Albert Cranford <AlbertC at millennium dot net>
- Date: Thu, 25 Mar 1999 03:55:57 -0500
1)System:Linux home 2.2.4 #2 Wed Mar 24 22:15:28 EST 1999 i586 unknown
2)egcs:egcs-2.91.66
3)error:
g++ -frepo -O2 -c sard.cc
sard.cc: In method `Disk::Disk(class string, int, int)':
sard.cc:148: warning: anachronistic old style base class initializer
sard.cc:148: base class initializer specified, but no base class to
initialize
sard.cc:149: warning: anachronistic old style base class initializer
sard.cc:149: base class initializer specified, but no base class to
initialize
make: *** [sard.o] Error 1
4)source:
Disk::Disk(string name, int major, int minor)
: name(name),
major(major),
minor(minor),
seen_activity(false)
{
char c;
c = name[name.length()-1];
is_partition = (c >= '0' && c <= '9');
}
--
Albert Cranford Deerfield Beach FL USA
AlbertC@millennium.net