------- Comment #2 from pinskia at gcc dot gnu dot org  2008-08-11 00:09 -------
Reduced testcase:
template<int >     class cla;
typedef cla <1> clas1;
template<int>     struct cla
{
  int&       f1(int& (*__pf)(const int&))
  {
    return __pf(1);
  }
};
int& endl(const int& __os);
extern template class cla<1>;
void f ( clas1& o ) {
  o.f1(endl);
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.4.0
      Known to work|                            |4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-11 00:09:53
               date|                            |
            Summary|ICE when gcc (4.4.0-        |[4.4 Regression] -fipa-cp vs
                   |20080731)  uses -fipa-cp    |extern template
                   |with -O                     |
   Target Milestone|---                         |4.4.0


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

Reply via email to