public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34240]  New: ICE with __builtin_isnormal
@ 2007-11-26 20:06 pcarlini at suse dot de
  2007-11-27 12:51 ` [Bug c++/34240] " rguenth at gcc dot gnu dot org
  2007-11-27 13:02 ` pcarlini at suse dot de
  0 siblings, 2 replies; 3+ messages in thread
From: pcarlini at suse dot de @ 2007-11-26 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

#include <string> 

template<typename T>
  int isnan(T t)
  {
    return __builtin_isnormal(t);
  }

int f()
{
  return isnan(std::string());
}

ice.cc: In function ‘int isnan(T) [with T = std::basic_string<char,
std::char_traits<char>, std::allocator<char> >]’:
ice.cc:6: internal compiler error: in expr_size, at explow.c:249


-- 
           Summary: ICE with __builtin_isnormal
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pcarlini at suse dot de
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug c++/34240] ICE with __builtin_isnormal
  2007-11-26 20:06 [Bug c++/34240] New: ICE with __builtin_isnormal pcarlini at suse dot de
@ 2007-11-27 12:51 ` rguenth at gcc dot gnu dot org
  2007-11-27 13:02 ` pcarlini at suse dot de
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-27 12:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-11-27 12:50 -------
Fixed with r130465:

./cc1plus -quiet /tmp/t.ii
t.C: In function 'int isnan(T) [with T = std::basic_string<char,
std::char_traits<char>, std::allocator<char> >]':
t.C:11:   instantiated from here
t.C:6: error: non-floating-point argument to function '__builtin_isnormal'


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/34240] ICE with __builtin_isnormal
  2007-11-26 20:06 [Bug c++/34240] New: ICE with __builtin_isnormal pcarlini at suse dot de
  2007-11-27 12:51 ` [Bug c++/34240] " rguenth at gcc dot gnu dot org
@ 2007-11-27 13:02 ` pcarlini at suse dot de
  1 sibling, 0 replies; 3+ messages in thread
From: pcarlini at suse dot de @ 2007-11-27 13:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pcarlini at suse dot de  2007-11-27 13:01 -------
Thanks!


-- 


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


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

end of thread, other threads:[~2007-11-27 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-26 20:06 [Bug c++/34240] New: ICE with __builtin_isnormal pcarlini at suse dot de
2007-11-27 12:51 ` [Bug c++/34240] " rguenth at gcc dot gnu dot org
2007-11-27 13:02 ` 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).