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]

Re: [critical libstdc++ regression]: Duplicate definitions with -On, n > 1


Gabriel Dos Reis <gdr@codesourcery.com> writes:

| Both GCC-3.0 and GCC-3.1 fail to translate the program below when

Oops, forgot the testcase.

Thanks Andreas.

Sorry for the confusion.

-- Gaby

/** fabs_inline.cpp
 * trying to reproduce a gcc-3.0 (prerelease) problem
 * WRT inlined std:: builtins
 *
 * Kurt Garloff <kurt@garloff.de>, 5/2001, GNU GPL
 */

#include <cmath>
#include <cstdio>

typedef double (*realfn) (double);

using std::fabs;

int main ()
{
	double a = fabs (-2.4);
	realfn myfn = fabs;
	double b = myfn (-2.5);
	printf ("%f, %f, %p\n", a, b, myfn);
}


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