PR c++/88337 - P1327R1: Allow polymorphic typeid in constexpr.
[gcc.git] / gcc / cp / rtti.c
index d987f8b4d8350ba419bda7c631562537a8b96581..da685961c704233ffcef33312ae7549c6427f071 100644 (file)
@@ -353,8 +353,6 @@ build_typeid (tree exp, tsubst_flags_t complain)
   if (processing_template_decl)
     return build_min (TYPEID_EXPR, const_type_info_type_node, exp);
 
-  /* FIXME when integrating with c_fully_fold, mark
-     resolves_to_fixed_type_p case as a non-constant expression.  */
   if (TYPE_POLYMORPHIC_P (TREE_TYPE (exp))
       && ! resolves_to_fixed_type_p (exp, &nonnull)
       && ! nonnull)