This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/36990] [4.4 Regression] -fipa-cp vs extern template
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2008 00:09:53 -0000
- Subject: [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs extern template
- References: <bug-36990-15353@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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