Bug 81750 - Calling generic lambda with no parameter fails to compile
Summary: Calling generic lambda with no parameter fails to compile
Status: RESOLVED DUPLICATE of bug 64095
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-07 13:10 UTC by d25fe0be@
Modified: 2017-08-09 11:16 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description d25fe0be@ 2017-08-07 13:10:15 UTC
The following code fails to compile on both GCC 7.1 and trunk: 

```
auto nop = [] (auto&& ...) {};

int main() {
    nop();
}

```

Live demo: https://wandbox.org/permlink/XNh0JqswieVsAeb0

Clang accepts it: https://wandbox.org/permlink/0Jys6k7mx8Wa29yK

`std::invoke(nop)` fails to compile as well, I'm not sure if the cause is the same: https://wandbox.org/permlink/kTU9YnRhSodSoHEP (The error message seems to be truncated some way, both on wandbox and my Linux box..)
Comment 1 TC 2017-08-08 21:07:01 UTC
This is bug 64095.
Comment 2 Jonathan Wakely 2017-08-09 11:16:29 UTC
Indeed, thanks, Tim.

*** This bug has been marked as a duplicate of bug 64095 ***