C++ Logo

std-discussion

Advanced search

Re: Type definitions in lambdas in alias template declarations

From: Manuel <dbc_at_[hidden]>
Date: Fri, 13 Jan 2023 17:01:13 -0000
The terminology around declarations is messy, but I'm fairly certain an
expression like `[] { struct X {}; }` does not 'define' anything
(except maybe the closure type for the purposes of ODR).
There is also [dcl.pre]/2 which should indicate strongly that gcc's
interpretation of the rule is wrong.

Received on 2023-01-13 17:01:17