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++/87934] [8/9 regression] struct with NSDMI of enum makes initialization a non-constant expression


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
commit d93ee6f87d421c95c873fe09445fc77cd8624a25
Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Jun 9 22:46:51 2017 +0000

    Don't fold conversion from a constant variable.

            * call.c (convert_like_real): Remove "inner" parameter.
            Don't replace a constant with its value.
            * cp-gimplify.c (cp_fully_fold): Use cp_fold_rvalue.

    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249083
138bc75d-0d04-0410-961f-82ee72b054a4

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