public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* g++ internal error
@ 1999-07-14  8:25 Giuliano Procida
  1999-07-14 17:05 ` Martin v. Loewis
  1999-07-31 23:33 ` Mumit Khan
  0 siblings, 2 replies; 9+ messages in thread
From: Giuliano Procida @ 1999-07-14  8:25 UTC (permalink / raw)
  To: bugs; +Cc: egcs-bugs

Package: g++
Version: 2.91.66-2

#include <string>
class myclass { static const string foo = "bar"; };

$ g++ break.c
break.c:2: Internal compiler error 109.
break.c:2: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
`break.c:2: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
$ g++ -v
`Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 Debian GNU/Linux (egcs-1.1.2 release)

Alas, I cannot reach this web site at the moment.

I hope this is of some help.
Giuliano.
>From khan@xraylith.wisc.EDU Wed Jul 14 08:33:00 1999
From: Mumit Khan <khan@xraylith.wisc.EDU>
To: Paul Burchard <burchard@math.ucla.edu>
Cc: egcs-bugs@egcs.cygnus.com, burchard@pobox.com
Subject: Re: possible template-parameterized-template bug 
Date: Wed, 14 Jul 1999 08:33:00 -0000
Message-id: <199907141418.JAA14890@mercury.xraylith.wisc.edu>
References: <199907141451.HAA04260@turing.math.ucla.edu>
X-SW-Source: 1999-07/msg00526.html
Content-length: 552

Paul Burchard <burchard@math.ucla.edu> writes:
> Consider the following small C++ program:
> 
> 
> template<class X> class A {};
> template<class Y> class B {};
> template<template<class XX> class AA> class C {
> 	class D {} d;
> 	class E : public B<D> {} e;
> };
> int main() { C<A> c; }
> 
> 
> Egcs-1.1.2 complains that this program defines the following
> twice (complete output below):
> 
> template <class XX> template <class X> class A<X>

It works as expected with upcoming gcc-2.95, so it appears that the
bug has been fixed.

Regards,
Mumit


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

* Re: g++ internal error
  1999-07-14  8:25 g++ internal error Giuliano Procida
@ 1999-07-14 17:05 ` Martin v. Loewis
  1999-07-31 23:33 ` Mumit Khan
  1 sibling, 0 replies; 9+ messages in thread
From: Martin v. Loewis @ 1999-07-14 17:05 UTC (permalink / raw)
  To: myxie; +Cc: bugs, egcs-bugs

> Alas, I cannot reach this web site at the moment.

Thanks for your bug report. I could reproduce it with egcs
1.1. gcc-2.95 19990701 says

a.cc:2: in-class initialization of static data member of non-integral type `const string'

so it appears that the bug is fixed.

Regards,
Martin


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

* Re: g++ internal error
  1999-07-14  8:25 g++ internal error Giuliano Procida
  1999-07-14 17:05 ` Martin v. Loewis
@ 1999-07-31 23:33 ` Mumit Khan
  1 sibling, 0 replies; 9+ messages in thread
From: Mumit Khan @ 1999-07-31 23:33 UTC (permalink / raw)
  To: Giuliano Procida; +Cc: bugs, egcs-bugs

Giuliano Procida <myxie@debian.org> writes:
> Package: g++
> Version: 2.91.66-2
> 
> #include <string>
> class myclass { static const string foo = "bar"; };
> 
> $ g++ break.c
> break.c:2: Internal compiler error 109.
> break.c:2: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
> `break.c:2: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
> $ g++ -v
> `Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
> gcc version egcs-2.91.66 Debian GNU/Linux (egcs-1.1.2 release)
> 

Upcoming gcc-2.95 isses the following diagnostic:
 
 $ gcc --version
 2.95
 $ gcc -Wall -ansi -pedantic x1.cc 
 x1.cc:2: in-class initialization of static data member of 
   non-integral type `const string'

Looks like the bug has been fixed for 2.95.

Regards,
Mumit


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

* Re: g++ internal error
  2000-03-01  6:32 Matthias Meixner
@ 2000-03-01 11:35 ` Martin v. Loewis
  0 siblings, 0 replies; 9+ messages in thread
From: Martin v. Loewis @ 2000-03-01 11:35 UTC (permalink / raw)
  To: meixner; +Cc: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1386 bytes --]

> The sourcecode has been attached to this EMail.

Thanks for your bug report. I've put it into GNATS.

Martin
>From oliva@lsd.ic.unicamp.br Wed Mar 01 11:35:00 2000
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
To: "Matt Parker" <mparker@computer.org>
Cc: <gcc-bugs@gcc.gnu.org>
Subject: Re: warnings/errors building 2.95
Date: Wed, 01 Mar 2000 11:35:00 -0000
Message-id: <m2r9du4kqi.fsf@localhost.localdomain>
References: <000101bf83a1$d3844ea0$774fb5d1@dnvr.uswest.net>
X-SW-Source: 2000-03/msg00034.html
Content-length: 853

On Mar  1, 2000, "Matt Parker" <mparker@computer.org> wrote:

> "Any other compilation errors may represent bugs in the port to your
> machine or operating system, and should be investigated and
> reported", which is why I'm sending this.

Thanks.  Please note that you got warnings, not errors.  In any case,
GCC has undergone a major warning clean-up, thanks mostly to Kaveh
R. Ghazi, so it is possible that, in the development tree, most or all
of these warnings are no longer present.  Would you like to give it a
try and report back if you still find them?

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaraná
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


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

* g++ internal error
@ 2000-03-01  6:32 Matthias Meixner
  2000-03-01 11:35 ` Martin v. Loewis
  0 siblings, 1 reply; 9+ messages in thread
From: Matthias Meixner @ 2000-03-01  6:32 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2368 bytes --]

Hello,

g++ reported an internal error:

meixner@pc2 $ g++ -v --save-temps -c -g -frepo pageserver.cxx -o
lo/pageserver.o
Reading specs from /opt/gnu/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /opt/gnu/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/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 -g -Acpu(i386) -Amachine(i386) -Di386
-D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro
-D__pentiumpro__ pageserver.cxx pageserver.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /opt/gnu/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3
 /usr/local/include

/opt/gnu/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../i686-pc-linux-gnu/include
 /opt/gnu/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /opt/gnu/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cc1plus pageserver.ii -quiet
-dumpbase pageserver.cc -g -version -frepo -o pageserver.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by
GNU C version 2.95.2 19991024 (release).
pageserver.cxx: In method `PageServer::PageServer(int = -1)':
pageserver.cxx:4: class `PageServer' does not have any field named
`event_manager'
pageserver.cxx:5: no matching function for call to
`event_manager<PageServer>::event_manager ()'
event.h:42: candidates are:
event_manager<PageServer>::event_manager(PageServer *)
event.h:59:                 event_manager<PageServer>::event_manager(const
event_manager<PageServer> &)
pageserver.cxx:26: Internal compiler error in `const_hash', at varasm.c:2372
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for
instructions.


The sourcecode has been attached to this EMail.

Regards,

	Matthias Meixner

-- 
Matthias Meixner                   meixner@rbg.informatik.tu-darmstadt.de
Technische Universität Darmstadt
Rechnerbetriebsgruppe                          Telefon (+49) 6151 16 6670
Wilhelminenstraße 7, D-64283 Darmstadt, Germany    Fax (+49) 6151 16 4701
pageserver.ii.gz


[-- Attachment #2: pageserver.ii.gz --]
[-- Type: application/x-gzip, Size: 16243 bytes --]

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

* g++ internal error
@ 1999-11-30 23:39 Lutz Maibaum
  1999-11-04 12:12 ` Alexandre Oliva
  0 siblings, 1 reply; 9+ messages in thread
From: Lutz Maibaum @ 1999-11-30 23:39 UTC (permalink / raw)
  To: bug-gcc

[-- Attachment #1: Type: text/plain, Size: 2223 bytes --]

Hi,

trying to compile DDD (form http://mumm.ibr.cs.tu-bs.de/softech/ddd/ ), the
make command stopped at the command

 c++  -v --save-temps -DHAVE_CONFIG_H -DNDEBUG -O2 -g -W -Wall
 -felide-constructors -fconserve-space -trigraphs -c -I. -I. -I./..
 -I/usr/include/X11  -o HelpCB.o HelpCB.C

with the following output:

Reading specs from
/home/h3/lutz/gcc/lib/gcc-lib/alphaev6-dec-osf4.0e/2.95.1/specs
gcc version 2.95.1 19990816 (release)
 /home/h3/lutz/gcc/lib/gcc-lib/alphaev6-dec-osf4.0e/2.95.1/cpp -lang-c++
-v -I. -I. -I./.. -I/usr/include/X11 -D__GNUC__=2 -D__GNUG__=2
-D__GNUC_MINOR__=95 -D__cplusplus -Dunix -D__osf__ -D_LONGLONG
-DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D_LONGLONG
-D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD -Asystem(unix)
-Asystem(xpg4) -D__EXCEPTIONS -D__OPTIMIZE__ -trigraphs -g -W -Wall
-D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus
-Acpu(alpha) -Amachine(alpha) -D__alpha -D__alpha__ -D__alpha_ev6__
-Acpu(ev6) -D__alpha_bwx__ -Acpu(bwx) -D__alpha_max__ -Acpu(max)
-D__alpha_fix__ -Acpu(fix) -DHAVE_CONFIG_H -DNDEBUG HelpCB.C HelpCB.ii
GNU CPP version 2.95.1 19990816 (release)
#include "..." search starts here:
#include <...> search starts here:
 .
 ..
 /usr/include/X11
 /home/h3/lutz/gcc/localheader

/home/h3/lutz/gcc/lib/gcc-lib/alphaev6-dec-osf4.0e/2.95.1/../../../../alphaev6-dec-osf4.0e/include
 /home/h3/lutz/gcc/lib/gcc-lib/alphaev6-dec-osf4.0e/2.95.1/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
 /home/h3/lutz/gcc/localinclude/include
End of omitted list.
 /home/h3/lutz/gcc/lib/gcc-lib/alphaev6-dec-osf4.0e/2.95.1/cc1plus
HelpCB.ii -quiet -dumpbase HelpCB.cc -g -O2 -W -Wall -version
-felide-constructors -fconserve-space -o HelpCB.s
GNU C++ version 2.95.1 19990816 (release) (alphaev6-dec-osf4.0e) compiled
by GNU C version 2.95.1 19990816 (release).
HelpCB.C: In function `void PopupTip(void *, XtIntervalId *)':
HelpCB.C:2148: Internal compiler error in `scan_region', at except.c:2566
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for
instructions.


I attached the resulting HelpCB.ii to this mail.

Lutz


[-- Attachment #2: HelpCB.ii.gz --]
[-- Type: application/x-gzip, Size: 71241 bytes --]

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

* Re: g++ internal error
  1999-11-30 23:39 Lutz Maibaum
@ 1999-11-04 12:12 ` Alexandre Oliva
  0 siblings, 0 replies; 9+ messages in thread
From: Alexandre Oliva @ 1999-11-04 12:12 UTC (permalink / raw)
  To: Lutz Maibaum; +Cc: bug-gcc

On Nov  4, 1999, Lutz Maibaum <lutz@gold.cchem.berkeley.edu> wrote:

> trying to compile DDD (form http://mumm.ibr.cs.tu-bs.de/softech/ddd/ ), the
> make command stopped at the command

Thanks for your bug report.  The latest development snapshot of gcc
compiles it successfully, but it is unlikely that the bug will be
fixed in the 2.95.* series.  You'll have to compile this particular
file without -DNDEBUG on alpha, before gcc 2.96 is released.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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

* Re: g++ internal error
  1999-07-31 23:33 John Ruttenberg
@ 1999-07-31 23:33 ` Mumit Khan
  0 siblings, 0 replies; 9+ messages in thread
From: Mumit Khan @ 1999-07-31 23:33 UTC (permalink / raw)
  To: John Ruttenberg; +Cc: gcc-bugs

John Ruttenberg <rutt@chezrutt.com> writes:
> This is a multi-part message in MIME format.
> --------------1D155320E1E8E49BA7B423ED
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> g++ -v --save-temps x.cxx
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>  /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef
> -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__
> -Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__
> -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix)
> -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386
> -D__i386 -D__i386__ x.cxx x.ii
> GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
> Linux/ELF)
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/include/g++-2
>  /usr/i386-redhat-linux/include
>  /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
>  /usr/include
> End of search list.
>  /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus x.ii -quiet
> -dumpbase x.cc -version -o x.s
> GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> (i386-redhat-linux) compiled by GNU C version egcs-2.91.66
> 19990314/Linux (egcs-1.1.2 release).
> <internal>:0: Internal compiler error.
> <internal>:0: Please submit a full bug report to
> `egcs-bugs@egcs.cygnus.com'.
> <internal>:0: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for
> details.


I cannot reproduce this with gcc-2.95 on x86-linux, and interestingly
enough, nor with egcs-1.1.2 on x86-linux.

Regards,
Mumit



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

* g++ internal error
@ 1999-07-31 23:33 John Ruttenberg
  1999-07-31 23:33 ` Mumit Khan
  0 siblings, 1 reply; 9+ messages in thread
From: John Ruttenberg @ 1999-07-31 23:33 UTC (permalink / raw)
  To: gcc-bugs

g++ -v --save-temps x.cxx
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef
-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__
-Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__
-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix)
-D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386
-D__i386 -D__i386__ x.cxx x.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++-2
 /usr/i386-redhat-linux/include
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus x.ii -quiet
-dumpbase x.cc -version -o x.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
(i386-redhat-linux) compiled by GNU C version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release).
<internal>:0: Internal compiler error.
<internal>:0: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
<internal>:0: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for
details.
[rutt@alice tmp]$
#include <stdio.h>

struct A 
{
    struct B;

    virtual void f() = 0;
};


struct A::B : A 
{
    void f() 
    {
        printf("Hello from A::B\n");
    };
    int i;
    
};


main()
{
    A::B* bp = new A::B;

    bp->f();
}

    
    
    
>From law@cygnus.com Sat Jul 31 23:33:00 1999
From: Jeffrey A Law <law@cygnus.com>
To: martin.kahlert@provi.de
Cc: egcs-bugs@egcs.cygnus.com, rth@cygnus.com
Subject: Re: Showstopper in g77 in prerelease on Linux-Alpha 
Date: Sat, 31 Jul 1999 23:33:00 -0000
Message-id: <4496.931501897@upchuck.cygnus.com>
References: <199907082138.XAA00190@keksy.linux.provi.de>
X-SW-Source: 1999-07n/msg00334.html
Content-length: 1782

  In message < 199907082138.XAA00190@keksy.linux.provi.de >you write:
  > I found a big bug in g77 on Linux Alpha in gcc-2.95 19990629 (prerelease):
  > Try this fortran File:
  > t.f:
  >       REAL*8 X
  >       X=90D0
  >       DO I=90,110
  >          X=X+1D0
  >          WRITE(*,*) NINT(X)
  >       ENDDO
  >       END
  > 
  > And compile it by: g77 -O2 -o t t.f
  > result: a lot of zeros. With -O1 you get correct results.
  > 
  > This is clearly a show stopper for me, since my program relies heavily on
  > NINT.
This appears to be an ev56 specific code generation problem.

Compiling for an ev56 we get the following sequence for the conversion from
FP to an int type:

0x120001194 <MAIN__+148>:       cvttq/c $f10,$f10
0x120001198 <MAIN__+152>:       sts     $f10,68(sp)
0x12000119c <MAIN__+156>:       nop
0x1200011a0 <MAIN__+160>:       ldl     t0,68(sp)
0x1200011a4 <MAIN__+164>:       mov     s2,a0
(gdb) display/i $pc
1: x/i $pc  0x120001194 <MAIN__+148>:   cvttq/c $f10,$f10
(gdb) p $f10
$1 = 91.5
(gdb) stepi
0x120001198 in MAIN__ ()
1: x/i $pc  0x120001198 <MAIN__+152>:   sts     $f10,68(sp)
(gdb) i r $f10
f10            4.4959973771553436e-322  (raw 0x000000000000005b)
(gdb) stepi
0x12000119c in MAIN__ ()
1: x/i $pc  0x12000119c <MAIN__+156>:   nop
(gdb) 
0x1200011a0 in MAIN__ ()
1: x/i $pc  0x1200011a0 <MAIN__+160>:   ldl     t0,68(sp)
(gdb) 
0x1200011a4 in MAIN__ ()
1: x/i $pc  0x1200011a4 <MAIN__+164>:   mov     s2,a0
(gdb) p/x $t0
$2 = 0x0

Note how $f10 has the right value, but the value we load out of the stack
is totally bogus, presumably because we did not store the right value into
the stack.

Richard, you'll need to take over at this point.

Note, if you compile for an ev6 the code uses ftoit which seems to avoid this
problem.

jeff


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

end of thread, other threads:[~2000-03-01 11:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-14  8:25 g++ internal error Giuliano Procida
1999-07-14 17:05 ` Martin v. Loewis
1999-07-31 23:33 ` Mumit Khan
1999-07-31 23:33 John Ruttenberg
1999-07-31 23:33 ` Mumit Khan
1999-11-30 23:39 Lutz Maibaum
1999-11-04 12:12 ` Alexandre Oliva
2000-03-01  6:32 Matthias Meixner
2000-03-01 11:35 ` Martin v. Loewis

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