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++/21089] [4.0/4.1 Regression] C++ front-end does not "inline" the static const double


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-18 17:53 -------
It has nothing to do with members of classes either, see the following code:
static const double a = 1.0;
static const double b = a+1.0;

double c()
{
  return b;
}

We now longer inline 2.0 into c.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0/4.1 Regression] C++    |[4.0/4.1 Regression] C++
                   |front-end does not "inline" |front-end does not "inline"
                   |the static const double     |the static const double
                   |members                     |


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


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