This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78334] [7 Regression] [C++1z] P0127R2 related ICE: Segmentation fault
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 13 Nov 2016 07:54:27 +0000
- Subject: [Bug c++/78334] [7 Regression] [C++1z] P0127R2 related ICE: Segmentation fault
- Auto-submitted: auto-generated
- References: <bug-78334-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78334
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Anatoliy Tomilov from comment #2)
> (In reply to Markus Trippelsdorf from comment #1)
> > markus@x4 /tmp % cat lam.ii
> > template <auto> auto constexpr_string([](auto) {});
> > void foo() { constexpr_string<0>(0); };
> >
> > markus@x4 /tmp % clang++ -c -std=c++1z lam.ii
> > markus@x4 /tmp % /var/tmp/gcc_test/usr/local/bin/g++ -c -std=c++1z lam.ii
> > lam.ii: In instantiation of ‘struct<lambda>’:
> > lam.ii:1:22: required from ‘auto constexpr_string<0>’
> > lam.ii:2:14: required from here
> > lam.ii:1:46: internal compiler error: Segmentation fault
>
> Why clang++? I sure this bug tracker is about g++.
It just demonstrates that clang accepts the code.