This is the mail archive of the gcc-bugs@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]

libstdc++/8550: undefined reference to fill and fill_n


>Number:         8550
>Category:       libstdc++
>Synopsis:       undefined reference to fill and fill_n
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 12 10:56:04 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Brian T. N. Gunney
>Release:        3.2
>Organization:
Lawrence Livermore National Lab
>Environment:
System: Linux tux75.llnl.gov 2.4.9-31smp #1 SMP Tue Feb 26 06:55:00 EST 2002 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.2/configure --prefix=/usr/apps/gcc/3.2
>Description:
	
The fill and fill_n functions are missing when compiled with -fno-implicit-template,
leading to an error at link time.

This is similar to bug 8172, in which I reported a missing operator+ for strings.
>How-To-Repeat:
	
Program text:
#include <algorithm>
using namespace std;
int main() {
  double x[10];
  fill_n( x, 10, 1.0 );
  fill( x, x+10, 2.0 );
  return 0;
}

Compile command:
g++ -fno-implicit-templates  nofill.cc

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


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