>Submitter-Id: net >Originator: Akim Demaille >Organization: >Confidential: no >Synopsis: Multiple static inline functions accepted >Severity: non-critical >Priority: low >Category: c >Class: accepts-illegal >Release: 4.0.2 (Debian 4.0.2-2) (Debian testing/unstable) >Environment: System: Linux nostromo 2.4.27-2-686-smp #1 SMP Tue Aug 16 15:57:25 JST 2005 i686 GNU/Linux Architecture: i686
host: i486-pc-linux-gnu build: i486-pc-linux-gnu target: i486-pc-linux-gnu configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu >Description: GCC accepts that a function is defined several times under the same name, provided it is static inline. It seems to rely on the assembler to check this kind of issues. >How-To-Repeat: The following compiles fine. static inline int one () { return 1; } static inline int one () { return 2; } int main () { return one (); } >Fix: No idea. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]