From mboxrd@z Thu Jan 1 00:00:00 1970 From: buschelm@mcs.anl.gov To: gcc-gnats@gcc.gnu.org Subject: c++/3013: templated inline function not inlined Date: Thu, 31 May 2001 10:16:00 -0000 Message-id: <20010531171136.11815.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg01060.html List-Id: >Number: 3013 >Category: c++ >Synopsis: templated inline function not inlined >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu May 31 10:16:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: buschelm@mcs.anl.gov >Release: unknown-1.0 >Organization: >Environment: linux >Description: The following function, add<4,float>, is not inlined by g++ all versions including the online 3.0 from Code Sourcery (as of today 5/31/01). #define SIZE 4 template inline int add(T*a,T*b) { for (int i=0;i(a,b); return(0); } >How-To-Repeat: g++ -S add.cc >Fix: >Release-Note: >Audit-Trail: >Unformatted: