===================================================================
@@ -953,6 +953,8 @@ grokfield (const cp_declarator *declarator,
}
else if (TREE_CODE (value) == FIELD_DECL)
/* C++11 NSDMI, keep going. */;
+ else if (is_auto (TREE_TYPE (value)))
+ /* C++11 auto, keep going. */;
else if (!VAR_P (value))
gcc_unreachable ();
else if (!processing_template_decl)
===================================================================
@@ -0,0 +1,11 @@
+// PR c++/58888
+// { dg-do compile { target c++11 } }
+
+#include <initializer_list>
+
+struct A
+{
+ static constexpr auto b{1.0};
+};
+
+constexpr decltype(A::b) A::b;