[Bug c++/79457] Segmentation fault in templated decltype evaluation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79457 --- Comment #2 from Teemu Piippo --- Created attachment 40716 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40716&action=edit Minimal example that does not crash
[Bug c++/79457] Segmentation fault in templated decltype evaluation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79457 --- Comment #1 from Teemu Piippo --- If the "S" declaration is removed and the decltype(...) moved into the return type of Foo::boo(), GCC does not crash and builds the example properly.