public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35914]  New: missing int std::abs(int)
@ 2008-04-12 10:46 l dot jirkovsky at gmail dot com
  2008-04-12 19:30 ` [Bug libstdc++/35914] " pcarlini at suse dot de
  0 siblings, 1 reply; 2+ messages in thread
From: l dot jirkovsky at gmail dot com @ 2008-04-12 10:46 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1391 bytes --]

It seems that there is missing int std::abs(int) in gcc 4.3.0. System is
Archlinux current.

Example output(from enblend cvs):
../../include/vigra/imageiteratoradapter.hxx:532: error: call of overloaded
‘abs(int&)’ is ambiguous
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:99:
note: candidates are: double std::abs(double)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:103:
note:                 float std::abs(float)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:107:
note:                 long double std::abs(long double)

GCC version:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix
--mandir=/usr/share/man --enable-__cxa_atexit --disable-multilib
--libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu
--disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.3.0 (GCC)


-- 
           Summary: missing int std::abs(int)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: l dot jirkovsky at gmail dot com


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libstdc++/35914] missing int std::abs(int)
  2008-04-12 10:46 [Bug c++/35914] New: missing int std::abs(int) l dot jirkovsky at gmail dot com
@ 2008-04-12 19:30 ` pcarlini at suse dot de
  0 siblings, 0 replies; 2+ messages in thread
From: pcarlini at suse dot de @ 2008-04-12 19:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pcarlini at suse dot de  2008-04-12 19:29 -------
You want to include <cstdlib>: <cmath> only provides overloads for floating
point types (see 26.5 for details).


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c++                         |libstdc++
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-12 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-12 10:46 [Bug c++/35914] New: missing int std::abs(int) l dot jirkovsky at gmail dot com
2008-04-12 19:30 ` [Bug libstdc++/35914] " pcarlini at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).