|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Bohdan Vlasyuk 2:5020/400 26 Jun 2001 12:21:07 To : All Subject : Re: лукавый gcc -------------------------------------------------------------------------------- yx <yx2me@observ.univ.kiev.ua> wrote: > не надо - мне интересен неизвестный код приводящий к gcc bug, > а то что тебе надо было по коду уже здесь сказали/скажут. -------------- Date: Thu, 26 Apr 2001 13:30:34 +0300 ... Subject: Bug in GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) ... $ gcc test.cpp gcc: Internal compiler error: program cpp got fatal signal 11 $ gcc -v 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) The actual file test.cpp is: #define DEB(y,x...) fprintf(stderr, #x" = "#y"\n",x) void main(void) { int fromblock; DEB(toblock) } .... -------------- BTW: Оно все еще `works': # gcc --version 2.95.3 # gcc main.c -o test gcc: Internal compiler error: program cpp0 got fatal signal 11 Что мне сказали: -------------- Synopsis: Bug with miltiple args. #DEFINE - causes cpp to SIGSEGV State-Changed-From-To: open->closed State-Changed-By: neil State-Changed-When: Thu Apr 26 18:09:25 2001 State-Changed-Why: The bug is not present in 3.0. ... Codesourcery's 3.0 branch compiler online gives /usr/tmp/@32339.7.c: In function `main': /usr/tmp/@32339.7.c:5: `stderr' undeclared (first use in this function) /usr/tmp/@32339.7.c:5: (Each undeclared identifier is reported only once /usr/tmp/@32339.7.c:5: for each function it appears in.) /usr/tmp/@32339.7.c:5: parse error before ')' token -------------- -------------- From: Neil Booth <neil@daikokuya.demon.co.uk> Bohdan Vlasyuk wrote:- > nggo> The bug is not present in 3.0. > I'm sorry, but I was always sure that 3.0 is still not released. Is it > stable enough for normal use ?? Probably, but C++ is not ABI compatible. > nggo> Codesourcery's 3.0 branch compiler online gives > nggo> [..] > You mean that you're not going to fix it ? It means it's fixed in the 3.0 branch for release. -------------- wbr, Bohdan. --- ifmail v.2.15dev5 * Origin: InterCEC, Vinnitsa State Technical University, Ukraine (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/166862dcd3b37.html, оценка из 5, голосов 10
|