[Bug c++/97034] [11 Regression] ICE on C++20 code: gcc_assert failure in return type deduction (gcc/cp/pt.c:26984 in type_dependent_expression_p(tree_node*))

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 16 18:42:21 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Another, valid, where C++20 aggregate CTAD should work:

template<typename>
struct E {
  template <typename T>
  struct G {
    T t;
  };

  void fn() { G{1}; }
};

void
g () {
  E<int> e;
  e.fn ();
}


More information about the Gcc-bugs mailing list