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



------- Comment #21 from sabre at nondot dot org  2005-10-11 17:03 -------
"required optimization" doesn't make sense to me.  To put it more clearly, do
you agree that this:

"In particular, I think the C++ standard specifies that memory is zero
initialized and then ctors (within a translation unit) are run in order."

statement is true, and that the code in comment 11 is valid?

If so, an attempt to implement this optimization just needs to be careful not
the break this sort of case.

-Chris


-- 


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]