[critical libstdc++ regression]: Duplicate definitions with -On, n > 1
Gabriel Dos Reis
gdr@codesourcery.com
Thu May 24 09:12:00 GMT 2001
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);
}
More information about the Gcc-bugs
mailing list