https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96008
Bug ID: 96008
Summary: cpp1y/lambda-generic-69078-1.C nonnull warning and ICE
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dje at gcc dot gnu.org
Target Milestone: ---
With the recent -Wnonnull changes, cpp1y/lambda-generic-69078-1.C now elicits a
warning and the compiler ICEs.
FAIL: g++.dg/cpp1y/lambda-generic-69078-1.C -std=gnu++14 (test for excess
errors)
Excess errors:
/nasfarm/edelsohn/src/src/gcc/testsuite/g++.dg/cpp1y/lambda-generic-69078-1.C:23:13:
warning: 'this' pointer null [-Wnonnull]
'
Internal compiler error: Error reporting routines re-entered.
ranges offset out of range
In discussion on IRC, Jonathan Wakely suggested that this is a C++FE bug
because a lambda expression can't have a null this pointer.