[Bug c++/84925] [8 Regression] ICE with segfault in __PRETTY_FUNCTION__

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 17 16:37:00 GMT 2018


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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
template <typename>
struct A {
  static const int value = 0;
  static auto constexpr fn = [] { return __PRETTY_FUNCTION__; };
};
template <typename type>
int x = A<type>::value;
auto s = x<int>;


More information about the Gcc-bugs mailing list