[Bug c++/21089] C++ front-end does not "inline" the static const double members

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 18 17:47:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-18 17:47 -------
(In reply to comment #2)
> Indeed.  Okay, but then this really is an optimization regression compared 
> to gcc 3.3.x which compiled this just fine.  As it's only rejected with 
> -pedantic (and I think it's a sensible extension), shouldn't we make sure 
> that we can compile this comparatively simple source, i.e. propagate 
> the constant correctly everywhere?  I'm not sure what to do, reopening with 
> a new subject, or creating a new bug? 

Oh, in that case I will reopen the bug with a different summary.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
           Keywords|                            |missed-optimization
         Resolution|DUPLICATE                   |
            Summary|c++ accepts invalid static  |C++ front-end does not
                   |const double members with   |"inline" the static const
                   |initializer                 |double members


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



More information about the Gcc-bugs mailing list