This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/18904] [4.0 Regression] 4.0-20041205 regression ICE with -O3


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-09 15:19 -------
Confirmed, reduced to:
struct Data; 
struct Wrapper { 
  Data* D; 
}; 
struct Data { 
  int X; 
  void init(Wrapper&);
};
void Data::init( Wrapper &w ) { 
  int Data::* res  = &Data::X;
  w.D = this; 
  for( int i = 0; i < 4; i++ )
    (w.D->*res) = 0;
} 


I am testing a fix, it is another use convert when we should be using fold_convert.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
          Component|c++                         |tree-optimization
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-09 15:19:01
               date|                            |
            Summary|4.0-20041205 regression ICE |[4.0 Regression] 4.0-
                   |with -O3                    |20041205 regression ICE with
                   |                            |-O3
   Target Milestone|---                         |4.0.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]