/cp
2018-02-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84533
* decl.c (redeclaration_error_message): Don't try to use
DECL_DECLARED_CONSTEXPR_P on CONST_DECLs.
/testsuite
2018-02-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84533
* g++.dg/cpp1z/pr84533.C: New.
From-SVN: r257991
+2018-02-26 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/84533
+ * decl.c (redeclaration_error_message): Don't try to use
+ DECL_DECLARED_CONSTEXPR_P on CONST_DECLs.
+
2018-02-26 Paolo Carlini <paolo.carlini@oracle.com>
* lambda.c (build_capture_proxy): Define static.
specifier is declaration rather than definition (and
deprecated). */
if (cxx_dialect >= cxx17
+ && VAR_P (olddecl)
&& DECL_CLASS_SCOPE_P (olddecl)
&& DECL_DECLARED_CONSTEXPR_P (olddecl)
&& !DECL_INITIAL (newdecl))
+2018-02-26 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/84533
+ * g++.dg/cpp1z/pr84533.C: New.
+
2018-02-26 Marek Polacek <polacek@redhat.com>
PR c++/84537
--- /dev/null
+// { dg-options "-std=c++17" }
+
+enum E { e, e }; // { dg-error "redefinition" }