This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/87934] [8/9 regression] struct with NSDMI of enum makes initialization a non-constant expression
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Nov 2018 15:16:36 +0000
- Subject: [Bug c++/87934] [8/9 regression] struct with NSDMI of enum makes initialization a non-constant expression
- Auto-submitted: auto-generated
- References: <bug-87934-4@http.gcc.gnu.org/bugzilla/>
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