cpplib: patch: three long-standing bugs

Jeffrey A Law law@cygnus.com
Thu Sep 30 23:58:00 GMT 1999


  In message < orso4sagxj.fsf@cupuacu.lsd.dcc.unicamp.br >you write:
  > On Sep  5, 1999, Jeffrey A Law <law@cygnus.com> wrote:
  > 
  > >   In message < 37D1E237.B69A5FDB@pobox.com >you write:
  > >> 
  > >> cpplib code has to be portable, right?  I don't think all compilers can
  > >> call functions from variable declarations IIRC.
  > > I have never seen one that couldn't handle calling a function to
  > > initialize a variable at its declaration/definition point.
  > 
  > AFAIR, there are restrictions in case of static variables, but
  > automatic ones are fine.
Right.  You can't call a function to initialize something in the static
store.  Initializers for static storage items must be constants.

I just assumed that we were discussing auto variables.  My fault for not making
that assumption explicit.
jeff



More information about the Gcc-patches mailing list