public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/27159]  New: ICE when using -fipa-pta
@ 2006-04-14 11:06 anton at samba dot org
  2006-04-14 17:39 ` [Bug tree-optimization/27159] " pinskia at gcc dot gnu dot org
  2006-04-16 23:11 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: anton at samba dot org @ 2006-04-14 11:06 UTC (permalink / raw)
  To: gcc-bugs

A recent build (4.2.0 20060413) ICEs when compiling this:

#include <iostream.h>

class bar {
public:
        float e[1];
};

istream &operator>>(istream &is, bar &t)
{
        is >> t.e[1];
        return is;
}

with the following options:

g++ -c -fipa-pta fail1.cc

The error is:

fail1.cc:15: internal compiler error: in collapse_rest_of_var, at
tree-ssa-structalias.c:2820


-- 
           Summary: ICE when using -fipa-pta
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anton at samba dot org
GCC target triplet: powerpc64-linux


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


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

* [Bug tree-optimization/27159] ICE when using -fipa-pta
  2006-04-14 11:06 [Bug tree-optimization/27159] New: ICE when using -fipa-pta anton at samba dot org
@ 2006-04-14 17:39 ` pinskia at gcc dot gnu dot org
  2006-04-16 23:11 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-14 17:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-14 17:39 -------
This is most likely PR 26963.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |26963


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


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

* [Bug tree-optimization/27159] ICE when using -fipa-pta
  2006-04-14 11:06 [Bug tree-optimization/27159] New: ICE when using -fipa-pta anton at samba dot org
  2006-04-14 17:39 ` [Bug tree-optimization/27159] " pinskia at gcc dot gnu dot org
@ 2006-04-16 23:11 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-16 23:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-04-16 23:11 -------
Reduced testcase:
struct istreambuf_iterator
{
    mutable int* _M_sbuf;
    mutable int _M_c;
    istreambuf_iterator(int __s) throw(){}
};
template<typename _CharT, typename _InIter> struct num_get
{
    typedef istreambuf_iterator iter_type;
    iter_type get(iter_type __in, iter_type __end) const
    {
        return this->do_get(__in, __end); 
    }
    virtual iter_type  do_get(iter_type, iter_type) const;
};
void _M_extract(void)
{
    typedef num_get<char, int>  __num_get_type;
    const __num_get_type* __ng;
    __ng->get(0, 0);
}


But this is a dup of bug 26963 after all.

*** This bug has been marked as a duplicate of 26963 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2006-04-16 23:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-14 11:06 [Bug tree-optimization/27159] New: ICE when using -fipa-pta anton at samba dot org
2006-04-14 17:39 ` [Bug tree-optimization/27159] " pinskia at gcc dot gnu dot org
2006-04-16 23:11 ` pinskia at gcc dot gnu dot 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).