public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5535: Compiler accepts class declaration with initializer for class with no constructors.
@ 2002-05-19  5:04 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-05-19  5:04 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, ken.corbin, nobody

Synopsis: Compiler accepts class declaration with initializer for class with no constructors.

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sun May 19 05:04:41 2002
State-Changed-Why:
    Confirmed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5535


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/5535: Compiler accepts class declaration with initializer for class with no constructors.
@ 2003-01-03 20:10 paolo
  0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2003-01-03 20:10 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, ken.corbin, nobody

Synopsis: Compiler accepts class declaration with initializer for class with no constructors.

State-Changed-From-To: analyzed->closed
State-Changed-By: paolo
State-Changed-When: Fri Jan  3 12:10:45 2003
State-Changed-Why:
    Already fixed for 3.3 and 3.4.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5535


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c++/5535: Compiler accepts class declaration with initializer for class with no constructors.
@ 2002-01-29 15:16 ken.corbin
  0 siblings, 0 replies; 3+ messages in thread
From: ken.corbin @ 2002-01-29 15:16 UTC (permalink / raw)
  To: gcc-gnats


>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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-03 20:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-19  5:04 c++/5535: Compiler accepts class declaration with initializer for class with no constructors lerdsuwa
  -- strict thread matches above, loose matches on Subject: below --
2003-01-03 20:10 paolo
2002-01-29 15:16 ken.corbin

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).