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]

g++ compile error


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


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