This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
GCC Bug ?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: GCC Bug ?
- From: Arnaud Rolly <rolly at free dot fr>
- Date: Wed, 19 Apr 2000 22:40:29 +0200
I've a problem with gcc :
[root@localhost audio]# g++ -c sound.cpp
sound.cpp:20: Internal compiler error.
sound.cpp:20: Please submit a full bug report.
sound.cpp:20: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
[root@localhost audio]# g++ -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
I've the Mandrake 7.0.
The 'problematic files' are attached to the mail.
Please keep me informed.
--
Arnaud Rolly
rolly@free.fr
#include "sound.h"
Sound::Sound(Resolution resolution,Channel channel,Frequency frequency)
{
this->resolution = resolution;
this->channel = channel;
this->frequency = frequency;
}
enum Sound::Channel Sound::getChannel()
{
return(this->channel);
}
enum Sound::Resolution Sound::getResolution()
{
return(this->resolution);
}
enum Sound::Frequency Sound::getFrequency()
{
return(this->frequency);
}
#ifndef __SOUND_H__
#define __SOUND_H__
class Sound
{
enum Channel { Mono = 1, Stereo = 2 };
enum Resolution { Low = 8, High = 16 };
typedef unsigned int Frequency;
public:
Sound(Resolution resolution,Channel channel,Frequency frequency);
Channel getChannel();
Resolution getResolution();
Frequency getFrequency();
protected:
Channel channel;
Resolution resolution;
Frequency frequency;
};
#endif