public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* A bug report.
@ 1998-12-03 0:08 Andrei G. Basov
1998-12-03 4:35 ` Alexandre Oliva
0 siblings, 1 reply; 3+ messages in thread
From: Andrei G. Basov @ 1998-12-03 0:08 UTC (permalink / raw)
To: egcs-bugs
The attached program gives me the following when compiled as
g++ -Wall -o t ptof.c++
ptof.c++: In function `void sort<int>()':
ptof.c++:17: Internal compiler error 40.
ptof.c++:17: Please submit a full bug report to `egcs-bugs@cygnus.com'.
The output of g++ -v is
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
[Comment: the basic problem is with the passing of pointer to a template
function without the explicit specification. See the source]
If this was already fixed - I apologize.
Good luck,
--
---DrOn
PS. Drop me a note if you received that message AND didn't send it to /dev/null
#include <stdlib.h>
#include <iostream.h>
template <class T>
int compare(const void *a,const void *b) {
if(*(T*)a==*(T*)b)
return 0;
if (*(T*)a<*(T*)b)
return -1;
return 1;
}
template <class T>
void sort() {
T *buf;
buf=new T[5];
qsort(buf,5,sizeof(T),compare<T>);
delete [] buf;
return;
}
main() {
sort<int>();
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: A bug report.
1998-12-03 0:08 A bug report Andrei G. Basov
@ 1998-12-03 4:35 ` Alexandre Oliva
0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 1998-12-03 4:35 UTC (permalink / raw)
To: abasov01; +Cc: egcs-bugs
On Dec 3, 1998, "Andrei G. Basov" <abasov01@utopia.poly.edu> wrote:
> ptof.c++: In function `void sort<int>()':
> ptof.c++:17: Internal compiler error 40.
> ptof.c++:17: Please submit a full bug report to `egcs-bugs@cygnus.com'.
Thanks for your bug report. This problem is fixed in the latest
development snapshot of egcs, but not in egcs 1.1.1 :-(
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil
^ permalink raw reply [flat|nested] 3+ messages in thread
* a bug report..
@ 1999-01-13 16:05 Stephan Dragehjerte
0 siblings, 0 replies; 3+ messages in thread
From: Stephan Dragehjerte @ 1999-01-13 16:05 UTC (permalink / raw)
To: egcs-bugs
[-- Attachment #1: Type: text/plain, Size: 575 bytes --]
[stephan@maskinen ~/programming/uptimed]$ make
g++ -c -o main.o main.cpp -O6 -mpentium -Wall
main.cpp: In function `int main(int, char **)':
main.cpp:175: warning: `char * hostname' might be used uninitialized in this
function
g++ -c -o list.o list.cpp -O6 -mpentium -Wall
list.cpp: In method `bool list<T>::sort(bool)':
list.cpp:260: Internal compiler error.
list.cpp:260: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [list.o] Error 1
[stephan@maskinen ~/programming/uptimed]$
Files attached..
-Stephan /
/ tisprut productions [tm]
[-- Attachment #2: uptimed.tar.gz --]
[-- Type: application/x-gzip, Size: 3549 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-01-13 16:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-03 0:08 A bug report Andrei G. Basov
1998-12-03 4:35 ` Alexandre Oliva
1999-01-13 16:05 a " Stephan Dragehjerte
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).