>Number: 8118 >Category: c++ >Synopsis: GCC accepts "odd" code without at least warning. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Wed Oct 02 01:06:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: VÁCLAV HAISMAN >Release: 3.3 20020925 (experimental) >Organization: >Environment: System: FreeBSD logout.sh.cvut.cz 4.7-RC FreeBSD 4.7-RC #0: Fri Sep 27 17:46:06 CEST 2002 root@logout.sh.cvut.cz:/usr/src/sys/compile/logout i386 host: i386-unknown-freebsd4.6 build: i386-unknown-freebsd4.6 target: i386-unknown-freebsd4.6 configured with: ../srcdir/configure --enable-threads --enable-languages=c,c++ --enable-version-specific-runtime-libs --prefix=/home/4/wilx --with-arch=i686 --with-cpu=i686 --enable-dwarf2 : (reconfigured) ../srcdir/configure --enable-threads --enable-languages=c,c++ --enable-version-specific-runtime-libs --prefix=/home/4/wilx --with-arch=i686 --with-cpu=i686 --enable-dwarf2 >Description: GCC accepts this odd code without any warning. >How-To-Repeat: class A { public: struct S { S(); }; }; class B : public A {}; B::S::S() {} >Fix: >Release-Note: >Audit-Trail: >Unformatted: