Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hafnermorris at gmail dot com
Target Milestone: ---
Created attachment 41433
--> https://gcc.gnu.org/bugzi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80873
--- Comment #2 from Morris Hafner ---
Created attachment 41413
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41413&action=edit
Minimal example code (valid)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80873
--- Comment #1 from Morris Hafner ---
I managed to create an example that is a valid program:
struct Buffer {};
auto parse(Buffer b);
template void parse(T target);
template
auto field(T target) {
return [&] {
parse(t
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hafnermorris at gmail dot com
Target Milestone: ---
Created attachment 41411
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41411&action=edit
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461
--- Comment #2 from Morris Hafner ---
I can see that the ice-on-invalid-code tag was set. This is only true in C++14
mode, because constexpr lambdas are part of the current C++17 draft (see Bug
70979).
The code is also accepted by the current cla
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hafnermorris at gmail dot com
Target Milestone: ---
Created attachment 40717
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40717&action=edit
Minimal example co