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++/65398] [5 Regression] [C++11] GCC rejects constexpr variable definitions with valid initialization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-03-13
                 CC|                            |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |5.0
            Summary|[C++11] GCC rejects         |[5 Regression] [C++11] GCC
                   |constexpr variable          |rejects constexpr variable
                   |definitions with valid      |definitions with valid
                   |initialization              |initialization
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, started with r214941, which did away with try_move_mult_to_index
that tried to replace &a[idx] p+ s * delta with &a[idx + delta].  I think the
fix is to teach cxx_fold_indirect_ref to do similar transformation.


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