Bug 69309 - Implement CWG 1780
Summary: Implement CWG 1780
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: accepts-invalid
Depends on:
Blocks:
 
Reported: 2016-01-16 00:06 UTC by Robert Haberlach
Modified: 2021-12-03 08:34 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2021-12-03 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.