[Bug tree-optimization/17368] New: ice-on-legal-code in optimize_inline_calls, at tree-inline.c

salinger at sun dot felk dot cvut dot cz gcc-bugzilla@gcc.gnu.org
Thu Sep 9 09:18:00 GMT 2004


GNU C++ version 3.5.0 20040905 (experimental) (i486-redhat-linux)
ix.cc: In function `int fce(std::string)':
ix.cc:8: internal compiler error: in optimize_inline_calls, at tree-inline.c:1821


// g++ -O2
#include <string>
#include <netinet/in.h>

int conv(const char *);

int fce(std::string s)
{
        return (htonl(conv(s.substr(1).c_str())));
}       


Fails with -O1 too, -O0 is OK.

-- 
           Summary: ice-on-legal-code  in optimize_inline_calls, at tree-
                    inline.c
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: salinger at sun dot felk dot cvut dot cz
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-redhat-linux-gnu
  GCC host triplet: i486-redhat-linux-gnu
GCC target triplet: i486-redhat-linux-gnu


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



More information about the Gcc-bugs mailing list