Article View: gnu.g++.bug
Article #1935g++ 1.34.2 parameter passing bug
From: Paolo Zeppegno
Date: Tue, 02 May 1989 16:15
Date: Tue, 02 May 1989 16:15
24 lines
1071 bytes
1071 bytes
I'm not c++ guru, but I think the following program should not compile
(for people not familiar with InterViews Banner is a subclass of Interactor)
g++ 1.34.2 compiles this without a warning..
#include <InterViews/world.h>
#include <InterViews/banner.h>
test(Interactor p)
{
printf("%d\n", sizeof p);
}
main()
{
Banner *foo = 0;
printf("%d\n", sizeof *foo);
test(*foo);
}
g++ version 1.34.2
/usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dvax -Dunix -D__vax__ -D__unix__ prova.c /tmp/cc003707.cpp
GNU CPP version 1.34
/usr/local/lib/gcc-c++ /tmp/cc003707.cpp -quiet -dumpbase prova.c -g -version - o /tmp/cc003707.s
GNU C++ version 1.32.0 (vax) compiled by GNU C version 1.34.
Technical Details
Message-ID:
<392@semto.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!mcvax!i2unix!semto!paoloShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!mcvax!i2unix!semto!paolo From: paolo@semto.UUCP (Paolo Zeppegno) Newsgroups: gnu.g++.bug Subject: g++ 1.34.2 parameter passing bug Message-ID: <392@semto.UUCP> Date: 2 May 89 16:15:25 GMT Reply-To: paolo@semto.UUCP (Paolo Zeppegno) Organization: Systems & Management (Torino - Italy) Lines: 24