[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    off-topic: need help with egcs 1.1.2 internal compiler error
From:       Johannes Sixt <Johannes.Sixt () telecom ! at>
Date:       1999-05-29 16:45:13
[Download RAW message or body]

Does someone use an egcs more recent than the 1.1.2 release?

The following two-liner produces an internal compiler error. I'd like to know
whether this happens with recent versions or not. Please try it out.

BTW, this also happens in more complicated programs, where it actually makes
sense to call the destructor of an object explicitly. :-)

Thanks,
-- Hannes

k6!514> cat junk1.cpp

template<class T> f(T v) { v.~T(); }
void g(const char* x) { f(x); }

k6!515> gcc junk1.cpp
junk1.cpp: In function `int f<const char *>(const char *)':
junk1.cpp:3:   instantiated from here
junk1.cpp:2: Internal compiler error.
junk1.cpp:2: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
junk1.cpp:2: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
k6!516> gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
k6!517> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic