This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78334] [7 Regression] [C++1z] P0127R2 related ICE: Segmentation fault


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]