This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

some strangeness with gcc 3.4.1


This program won't compile with gcc 3.4.1:

: leisner@soyata;cat foo.c 

foo()
{
        bar();
}

void bar()
{
}

: leisner@soyata;gcc -v -fsyntax-only foo.c 
Reading specs from /usr/gnu/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: /usr/local/src/gnu/gcc-3.4.1/configure --prefix=/usr/gnu/gcc-3.
4.1 --enable-shared --enable-__cxa_atexit --with-system-zlib --disable-nls --ena
ble-languages=c,c++
Thread model: posix
gcc version 3.4.1
 /usr/gnu/gcc-3.4.1/libexec/gcc/i686-pc-linux-gnu/3.4.1/cc1 -quiet -v foo.c -qui
et -dumpbase foo.c -mtune=pentiumpro -auxbase foo -version -fsyntax-only -o /dev
/null
ignoring nonexistent directory "/usr/gnu/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4
.1/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/gnu/gcc-3.4.1/include
 /usr/gnu/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4.1/include
 /usr/include
End of search list.
GNU C version 3.4.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.2 20020903 (Red Hat Linux 8.0 3.2-7).
GGC heuristics: --param ggc-min-expand=51 --param ggc-min-heapsize=40008
foo.c:8: error: conflicting types for 'bar'
foo.c:4: error: previous implicit declaration of 'bar' was here

-std=c89 doesn't make a difference -- 3.3.2 has no errors

I didn't see anything about this case in the gcc 3.4.2 changes-- and I can't figure out
how to explain this to search bugzilla...

marty



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]