public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37276]  New: Trouble with some (C99?) math builtins and namespace std
@ 2008-08-29 12:54 paolo dot carlini at oracle dot com
  2008-08-29 13:05 ` [Bug c++/37276] " paolo dot carlini at oracle dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-29 12:54 UTC (permalink / raw)
  To: gcc-bugs

Hi, I'm getting this annoying run-time Seg-fault for the below. Apparently,
isn't a regression, but really, if we could fix it, the C++ library would
benefit a lot from the fix!

////////////////

namespace my_std
{
  inline double
  atan(double __x)
  { return __builtin_atan(__x); }

  inline double
  atanh(double __x)
  { return __builtin_atanh(__x); }
}

namespace std
{
  inline double
  atan(double __x)
  { return __builtin_atan(__x); }

  inline double
  atanh(double __x)
  { return __builtin_atanh(__x); }
}

int main()
{
  double d;

  my_std::atan(.3);  // works
  my_std::atanh(.3); // works

  std::atan(.3);     // works
  std::atanh(.3);    // seg-faults at run-time
}


-- 
           Summary: Trouble with some (C99?) math builtins and namespace std
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: paolo dot carlini at oracle dot com


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


^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <bug-37276-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-11-15  1:54 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-29 12:54 [Bug c++/37276] New: Trouble with some (C99?) math builtins and namespace std paolo dot carlini at oracle dot com
2008-08-29 13:05 ` [Bug c++/37276] " paolo dot carlini at oracle dot com
2008-08-29 13:05 ` paolo dot carlini at oracle dot com
2008-08-29 13:09 ` rguenth at gcc dot gnu dot org
2008-08-29 13:13 ` rguenth at gcc dot gnu dot org
2008-08-29 14:19 ` paolo dot carlini at oracle dot com
2008-08-29 15:54 ` pinskia at gcc dot gnu dot org
2008-08-29 15:57 ` paolo dot carlini at oracle dot com
2008-08-29 16:03 ` paolo dot carlini at oracle dot com
2008-08-29 16:06 ` paolo dot carlini at oracle dot com
2008-08-29 18:47 ` paolo dot carlini at oracle dot com
2008-08-30 14:26 ` rguenther at suse dot de
2009-07-14 14:00 ` paolo dot carlini at oracle dot com
2009-07-14 18:16 ` jason at gcc dot gnu dot org
2009-07-14 18:44 ` jason at gcc dot gnu dot org
     [not found] <bug-37276-4@http.gcc.gnu.org/bugzilla/>
2012-11-15  1:54 ` jason at gcc dot gnu.org

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).