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]

[Bug c++/11409] [3.3/3.4 regression] using declarations and fabs built-in


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11409



------- Additional Comments From gdr at integrable-solutions dot net  2003-07-04 12:01 -------
Subject: Re:  New: 26_numerics/fabs_inline.cc failure

"rth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
| 
| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11409
| 
|            Summary: 26_numerics/fabs_inline.cc failure
|            Product: gcc
|            Version: 3.4
|             Status: UNCONFIRMED
|           Severity: normal
|           Priority: P2
|          Component: libstdc++
|         AssignedTo: unassigned at gcc dot gnu dot org
|         ReportedBy: rth at gcc dot gnu dot org
|                 CC: gcc-bugs at gcc dot gnu dot org
|  GCC build triplet: alpha-linux
|   GCC host triplet: alpha-linux
| GCC target triplet: alpha-linux
| 
| The test case fails with 
| 
| .../26_numerics/fabs_inline.cc: In function `int main()':
| .../26_numerics/fabs_inline.cc:33: error: converting
|    overloaded function `fabs' to type `double (*)(double)' is ambiguous
| /usr/include/bits/mathinline.h:84: error: candidates are: double fabs(double)
| <internal>:0: error:                 double std::fabs(double)

I'm almost certain that this is a bug introduced by the handling of
built-ins.  I'm certain I recently raised this issue, and discussed
the thing with Roger Sayle.

-- Gaby


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