[Bug c++/12458] New: h8300-hms-gcc Bug
sengyaw at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 30 11:00:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12458
Summary: h8300-hms-gcc Bug
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sengyaw at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
Dear Sir/Madam,
There is a bug when compile the below source code with h8300-hms-gcc compiler.
//--- Start ---//
class A_c {
int a;
};
class B_c : private A_c {
int b;
};
class C_c : public B_c {
class D_c : public A_c {
int d;
};
};
main ()
{
return 0;
}
//--- End ---//
Below is the command used and the message.
$ h8300-hms-gcc tst.cpp
tst.cpp:1: `class A_c' is inaccessible
tst.cpp:10: within this context
Information from h8300-hms-gcc -v command:
Reading specs from /usr/local/h8/lib/gcc-lib/h8300-hms/3.2.3/specs Configured
with: ../configure --target=h8300-hms --prefix=/usr/local/h8 --enable -
languages=c++ --with-newlib --with-headers=/usr/newlib/newlib-1.11.0/newlib/lib
c/include Thread model: single gcc version 3.2.3
Thanks.
Regards,
Tan Seng Yaw
Programmer, R&D (Systems)
E-Genting Sdn. Bhd.
More information about the Gcc-bugs
mailing list