public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: ken.corbin@summitsite.com
To: gcc-gnats@gcc.gnu.org
Subject: c++/5535: Compiler accepts class declaration with initializer for class with no constructors.
Date: Tue, 29 Jan 2002 15:16:00 -0000	[thread overview]
Message-ID: <20020129230824.24217.qmail@sources.redhat.com> (raw)


>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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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


             reply	other threads:[~2002-01-29 23:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-29 15:16 ken.corbin [this message]
2002-05-19  5:04 lerdsuwa
2003-01-03 20:10 paolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020129230824.24217.qmail@sources.redhat.com \
    --to=ken.corbin@summitsite.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).