public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* ice gcc-2.95 19990629 (prerelease) when calling non-existing minus() member-function
@ 1999-07-03 9:08 Ulf Larsson
1999-07-03 11:03 ` Alexandre Oliva
0 siblings, 1 reply; 2+ messages in thread
From: Ulf Larsson @ 1999-07-03 9:08 UTC (permalink / raw)
To: egcs-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4459 bytes --]
Hello,
Calling a non-existing member-function with name minus() generate an
internal compiler error.
$ more ice.cc
#include <algobase.h>
struct A {};
int
main()
{
A a;
a.minus();
return 0;
}
$ /usr/local/egcs-ss/bin/g++ -v -c ice.cc
Reading specs from
/usr/local/egcs-ss/lib/gcc-lib/i686-pc-linux-gnu/gcc-2.95/specs
gcc version gcc-2.95 19990629 (prerelease)
/usr/local/egcs-ss/lib/gcc-lib/i686-pc-linux-gnu/gcc-2.95/cpp -lang-c++
-v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__
-Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__
-D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686
-D__i686__ -D__pentiumpro -D__pentiumpro__ ice.cc /tmp/ccn3vQAn.ii
GNU CPP version gcc-2.95 19990629 (prerelease) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/egcs-ss/lib/gcc-lib/i686-pc-linux-gnu/gcc-2.95/../../../../include/g++-2
/usr/local/include
/usr/local/egcs-ss/lib/gcc-lib/i686-pc-linux-gnu/gcc-2.95/../../../../i686-pc-linux-gnu/include
/usr/local/egcs-ss/lib/gcc-lib/i686-pc-linux-gnu/gcc-2.95/include
/usr/include
End of search list.
The following default directories have been omitted from the search
path:
End of omitted list.
/usr/local/egcs-ss/lib/gcc-lib/i686-pc-linux-gnu/gcc-2.95/cc1plus
/tmp/ccn3vQAn.ii -quiet -dumpbase ice.cc -version -o /tmp/ccw2fhGI.s
GNU C++ version gcc-2.95 19990629 (prerelease) (i686-pc-linux-gnu)
compiled by GNU C version gcc-2.95 19990629 (prerelease).
ice.cc: In function `int main()':
ice.cc:8: Internal compiler error.
ice.cc:8: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
ice.cc:8: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for
details.
Ulf Larsson
>From porten@tu-harburg.de Sat Jul 03 09:30:00 1999
From: Harri Porten <porten@tu-harburg.de>
To: egcs-bugs@egcs.cygnus.com
Subject: Internal compiler error in `find_function_data'
Date: Sat, 03 Jul 1999 09:30:00 -0000
Message-id: <377E3AD7.ADEF07D1@tu-harburg.de>
X-SW-Source: 1999-07/msg00116.html
Content-length: 1058
Hi !
The attached (invalid) C++ code triggers:
error.cpp:2: function body for constructor missing
error.cpp: In method `A::A()':
error.cpp:2: parse error before `;'
error.cpp:2: parse error at end of saved function text
error.cpp:8: warning: all member functions in class `A::B' are private
error.cpp: In method `void A::B::m()':
error.cpp:12: warning: all member functions in class `A::C' are private
error.cpp:11: parse error before `;'
error.cpp: In function `enum A::T n()':
error.cpp:17: parse error before `}'
error.cpp:22: no `void n()::E::m()' member function declared in class
`n()::E'
error.cpp: In method `void n()::E::m()':
error.cpp:25: Internal compiler error in `find_function_data', at
function.c:542
with the following egcs:
Reading specs from
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/gcc-2.95/specs
gcc version gcc-2.95 19990615 (prerelease)
Harri.
class A {
A() : x;
enum T { };
};
class B {
void m() {}
};
class C {
void m() {}
};
class D {
void m();
A::T n() {}
};
class E {
};
void E::m() {
}
void E::n() {
}
>From oliva@dcc.unicamp.br Sat Jul 03 10:28:00 1999
From: Alexandre Oliva <oliva@dcc.unicamp.br>
To: Göran Uddeborg <uddeborg@carmen.se>
Cc: egcs-bugs@egcs.cygnus.com
Subject: Re: Too many warnings.
Date: Sat, 03 Jul 1999 10:28:00 -0000
Message-id: <or908x4p9k.fsf@cupuacu.lsd.dcc.unicamp.br>
References: <199907021435.KAA17593@jaj.com> <199907021536.RAA00632@gibraltar.carmen.se>
X-SW-Source: 1999-07/msg00117.html
Content-length: 822
On Jul 2, 1999, Göran Uddeborg <uddeborg@carmen.se> wrote:
> I do understand that there is a value being ignored here. But that is
> true for the statement
> i=1;
> too.
But this is so common that it wouldn't make sense to issue a warning
in this case. But discarding the result of an expression like the one
you're using:
> i++ && (j=84)
is not that common. It does deserve a warning, since it could have
been written:
if (i++) j=84;
or, if you really need an expression:
i++ ? j=84 : 0
None of these produce warnings.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ice gcc-2.95 19990629 (prerelease) when calling non-existing minus() member-function
1999-07-03 9:08 ice gcc-2.95 19990629 (prerelease) when calling non-existing minus() member-function Ulf Larsson
@ 1999-07-03 11:03 ` Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 1999-07-03 11:03 UTC (permalink / raw)
To: ulf; +Cc: egcs-bugs
On Jul 3, 1999, Ulf Larsson <ulf.larsson@mbow337.swipnet.se> wrote:
> Calling a non-existing member-function with name minus() generate an
> internal compiler error.
Thanks for your bug report. I'm installing a simplified version of
your test case in the testsuite.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-07-03 11:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-03 9:08 ice gcc-2.95 19990629 (prerelease) when calling non-existing minus() member-function Ulf Larsson
1999-07-03 11:03 ` Alexandre Oliva
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).