[Bug c++/95317] [8/9/10/11 Regression] ICE on valid C++14 code, in tsubst_copy, at cp/pt.c:15649

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 26 07:43:14 GMT 2020


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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:

cat pr95317.ii
template <typename> void fn1() {
  [](auto) {
    enum { VALUE };
    VALUE;
  };
}
main() { fn1<void>; }


More information about the Gcc-bugs mailing list