Bug 69309

Summary: Implement CWG 1780
Product: gcc Reporter: Robert Haberlach <columbo>
Component: c++Assignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: daniel.kruegler, webrown.cpp
Priority: P3 Keywords: accepts-invalid
Version: 6.0   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2021-12-03 00:00:00

Description Robert Haberlach 2016-01-16 00:06:39 UTC
auto l = [] {};
struct s {friend void decltype(l)::operator()() const;};

The above spuriously succeeds.
Comment 1 Marek Polacek 2019-06-09 01:10:55 UTC
Confirmed.