This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80465] New: [7 Regression] ICE when evaluating a lamba noexcept spec with captures in C++1z
- From: "eric at efcs dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Apr 2017 18:43:14 +0000
- Subject: [Bug c++/80465] New: [7 Regression] ICE when evaluating a lamba noexcept spec with captures in C++1z
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80465
Bug ID: 80465
Summary: [7 Regression] ICE when evaluating a lamba noexcept
spec with captures in C++1z
Product: gcc
Version: 7.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: eric at efcs dot ca
Target Milestone: ---
Reproducer:
// g++ -fsyntax-only -std=c++1z test.cpp
int foo(...);
int main() {
[](auto a) noexcept(noexcept(foo(a))){}(42);
}
The ICE gives the message: internal compiler error: in nothrow_spec_p, at
cp/except.c:1159
Note that this is a regression and does not occur with GCC 6 with -std=c++1z.