This is the mail archive of the gcc-patches@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]

C++ PATCH for c++/80077, constexpr and -fno-elide-constructors


My patch to exclude assignments in the actual initializer from being
considered constant-expressions broke this case, where we represent a
trivial copy constructor with a MODIFY_EXPR.  Fixed by indicating that
we are effectively in a call to a constexpr function.

Tested x86_64-pc-linux-gnu, applying to trunk.

Attachment: 80077.diff
Description: Text document


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