The following code snippet just does not compile (it did in GCC
        3.3.3)

Environment:
System: Linux spartacus 2.6.9 #1 Fri Nov 5 17:15:13 CET 2004 i686 pentium3 i386 
GNU/Linux
Architecture: i686

        
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.4.2/configure --prefix=/usr --libexecdir=/usr/lib 
--enable-shared --enable-threads=posix --enable-__cxa_atexit 
--enable-clocale=gnu --enable-languages=c,c++

How-To-Repeat:
        21:20 spartacus:~ > cat ts.c
        #define INLINE inline __attribute__((always_inline))

        static INLINE void blah(void);

        int main(void) {
            blah();
            return 0;
        }

        static INLINE void blah(void) {
            return;
        }
        21:21 spartacus:~ > gcc ts.c -Wall
        ts.c: In function 
ain':
        ts.c:3: sorry, unimplemented: inlining failed in call to 'blah': 
function
        body not available
        ts.c:6: sorry, unimplemented: called from here
------- Additional Comments From jengelh at linux01 dot gwdg dot de  2004-11-19 
20:25 -------
Fix:
        This can be worked around by placing the function body of blah()
        before any call to it.

-- 
           Summary: Call to inline function failed
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jengelh at linux01 dot gwdg dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18569

Reply via email to