This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81918] New: muddles Concept confuses compiler (segfault)
- From: "jesse at mind dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Aug 2017 19:20:44 +0000
- Subject: [Bug c++/81918] New: muddles Concept confuses compiler (segfault)
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81918
Bug ID: 81918
Summary: muddles Concept confuses compiler (segfault)
Product: gcc
Version: 7.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jesse at mind dot net
Target Milestone: ---
Created attachment 42022
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42022&action=edit
Triggers segfault
g++ (SUSE Linux) 7.1.1 20170629 [gcc-7-branch revision 249772]
g++ -Wall -Wextra -std=c++17 -fconcepts -o segfault segfault.cpp
segfault.cpp: In instantiation of ‘main()::<lambda(const auto:1&)> [with auto:1
= std::_Fwd_list_iterator<int>]’:
segfault.cpp:9:5: required from here
segfault.cpp:25:40: internal compiler error: Segmentation fault
[](const auto& x) { return x; });
A confused Concept appears to also confuse GCC.