From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25984 invoked by alias); 29 Jan 2002 23:16:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25931 invoked by uid 71); 29 Jan 2002 23:16:02 -0000 Resent-Date: 29 Jan 2002 23:16:02 -0000 Resent-Message-ID: <20020129231602.25929.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, ken.corbin@summitsite.com Received:(qmail 24218 invoked by uid 61); 29 Jan 2002 23:08:24 -0000 Message-Id:<20020129230824.24217.qmail@sources.redhat.com> Date: Tue, 29 Jan 2002 15:16:00 -0000 From: ken.corbin@summitsite.com Reply-To: ken.corbin@summitsite.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/5535: Compiler accepts class declaration with initializer for class with no constructors. X-SW-Source: 2002-01/txt/msg01043.txt.bz2 List-Id: >Number: 5535 >Category: c++ >Synopsis: Compiler accepts class declaration with initializer for class with no constructors. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Jan 29 15:16:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Kenneth Corbin >Release: 3.0.3 >Organization: >Environment: MPE/ix. But this is also causing panics on Linux 3.0.1 so I'm guessing that it is a general problem rather than something specific to the MPE/ix port. >Description: Results on MPE/ix: /DIS/GNU/local/bin/gcc;info="-B /DIS/GNU/local/lib/gcc-lib/ -iprefix /DIS/GNU/lo cal/lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/ -Wformat -v -c -DHPCXL -D_MPEXL_SOURCE - fno-exceptions -I- -I ./include -I ../PUB/include -x c++ /CPP30/KEC/BTEST -o /C PP30/OBJECTS/BTEST" Reading specs from /DIS/GNU/local/lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/specs Configured with: ../configure --with-gnu-as --disable-pic Thread model: single gcc version 3.0.3 /DIS/GNU/local/lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/cc1plus -v -I- -I ./include - I ../PUB/include -iprefix ../lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/ -isystem /DIS/G NU/local/lib/gcc-lib/include -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL __=3 -Dmpe -DMPE -Dhp3000s900 -D__hp3000s900 -D__mpe__ -D__MPE__ -D__hp3000s900_ _ -D__hp3000s900 -D__mpe -D__MPE -D__hp3000s900 -Asystem=mpeix -Acpu=hppa -Amach ine=hppa -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Wformat -DMPE -Dmpe -D__STDC_EXT__ -DHPCXL -D_MPEXL_SOURCE -iprefix /DIS/GNU/local/lib/gcc-lib/hppa1.0-hp-mpeix/3. 0.3/ /CPP30/KEC/BTEST -D__GNUG__=3 -D__GXX_DEPRECATED -D__GXX_ABI_VERSION=100 -q uiet -dumpbase BTEST -Wformat -version -fno-exceptions -o /tmp/cc62yeaa.s ignoring nonexistent directory "include" ignoring nonexistent directory "/DIS/GNU/local/lib/gcc-lib/include" GNU CPP version 3.0.3 (cpplib) (hppa - MPE/iX) GNU C++ version 3.0.3 (hppa1.0-hp-mpeix) compiled by GNU C version 3.0.3. ignoring nonexistent directory "/DIS/GNU/local/hppa1.0-hp-mpeix/include" ignoring nonexistent directory "/usr/local/lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/.. /../../../hppa1.0-hp-mpeix/include" #include "..." search starts here: #include <...> search starts here: ../PUB/include /DIS/GNU/local/include/g++-v3 /DIS/GNU/local/include/g++-v3/hppa1.0-hp-mpeix /DIS/GNU/local/include/g++-v3/backward /DIS/GNU/local/lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/include /usr/local/lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/../../../../include/g++-v3 /usr/local/lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/../../../../include/g++-v3/hppa1. 0-hp-mpeix /usr/local/lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/../../../../include/g++-v3/backwa rd /usr/local/include /usr/local/lib/gcc-lib/hppa1.0-hp-mpeix/3.0.3/include /usr/include End of search list. /CPP30/KEC/BTEST: In function `int main()': /CPP30/KEC/BTEST:19: Internal compiler error in gen_lowpart, at emit-rtl.c:1094 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. results on linux: karl-Linux$g++ -v btest.cc Reading specs from /usr/lib/gcc-lib/i686-redhat-linux/3.0.1/specs Configured with: ../configure --prefix=/usr --infodir=/usr/info --mandir=/usr/ma n --enable-shared --enable-threads=posix --enable-haifa --enable-languages=c,gco v,c++,objc,java,f77 --enable-long-long --enable-namespaces --enable-multilib --w ith-gnu-as --with-gnu-ld --with-system-zlib --with-slibdir=/lib --without-x i686 -redhat-linux Thread model: posix gcc version 3.0.1 /usr/lib/gcc-lib/i686-redhat-linux/3.0.1/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR __=0 -D__GNUC_PATCHLEVEL__=1 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__l inux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_ GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ btest.cc -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D __GXX_ABI_VERSION=100 -quiet -dumpbase btest.cc -version -o /tmp/ccov25sf.s GNU CPP version 3.0.1 (cpplib) (i386 Linux/ELF) GNU C++ version 3.0.1 (i686-redhat-linux) compiled by GNU C version 3.0.1. ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/i686-redhat-linux/include" #include "..." search starts here: #include <...> search starts here: /usr/include/g++-v3 /usr/include/g++-v3/i686-redhat-linux /usr/include/g++-v3/backward /usr/lib/gcc-lib/i686-redhat-linux/3.0.1/include /usr/include End of search list. btest.cc: In function `int main()': btest.cc:18: Internal compiler error in emit_move_insn, at expr.c:2713 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >How-To-Repeat: Compile attached program, with or without the commented out int ii; Without it compiler generates no errors and does what an novice C++ programmer would expect it to. With it generates a compiler panic. On Linux 3.0.1 both versions generate a different compiler panic. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="btest.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="btest.c" Ly8gSFAgU09VUkNFDQoNCiNpbmNsdWRlIDxzdGRpby5oPg0KDQp0ZW1wbGF0ZTxpbnQgaT4gY2xh c3MgQ2hhcmFjdGVyDQp7DQpwcm90ZWN0ZWQ6DQogICAvL2ludCBpaTsNCiAgIGNoYXIgY1tpXTsN CnB1YmxpYzoNCiAgIGNvbnN0IGNoYXIgKnN0cigpIHsgcmV0dXJuIGM7IH0NCn0gIDsNCg0KaW50 IG1haW4oKQ0Kew0KDQogICBzdGF0aWMgQ2hhcmFjdGVyPDM+IGNhVGVzdCA9ICIlJSVYWFgiOw0K ICAgc3RhdGljIENoYXJhY3RlcjwyPiBjYUFjdGlvbiA9ICJZWSI7DQogICBzdGF0aWMgQ2hhcmFj dGVyPDE+IGNhRnJlcXVlbmN5ID0gJ1gnOw0KDQogICBwcmludGYoIiVzIiwgY2FUZXN0LnN0cigp KTsNCg0KfQ0K