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 c++/17530] [4.0 Regression] failure to emit inline function


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-17 03:26 -------
Confirmed, here is a little smaller testcase which shows what is interacting with what:
typedef void (*Func) ();
void f (Func) {}
struct B
{
  static void staticfunc () {} // <-- moving the function out from the class
};
template <int>  // <-- removing the template fixes it
void C(){ f (B::staticfunc); }
int main ()
{
  C<0>();
  return 0;
}

using Phil's regresion hunter:
between 20040729 and 20040730 is where the problem started which is when Mark's change to move 
to always unit-at-a-time for C++.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-17 03:26:56
               date|                            |
            Summary|4.0: failure to emit inline |[4.0 Regression] failure to
                   |function                    |emit inline function
   Target Milestone|---                         |4.0.0
            Version|0.0                         |4.0.0


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


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