This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [critical libstdc++ regression]: Duplicate definitions with -On, n > 1
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Subject: Re: [critical libstdc++ regression]: Duplicate definitions with -On, n > 1
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 24 May 2001 18:12:44 +0200
- Cc: gcc-bugs at gcc dot gnu dot org, Andreas Jaeger <aj at suse dot de>, Kurt Garloff <garloff at suse dot de>, Jan van Dijk <jan at etpmod dot phys dot tue dot nl>, bkoz at redhat dot com, drepper at redhat dot com
- Organization: CodeSourcery.com
- References: <m3vgmqbvy2.fsf@merlin.codesourcery.com>
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);
}