https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90818

--- Comment #1 from Mark Atkinson <mark.atkinson99 at gmail dot com> ---
Error message FYI:

source>: In lambda function:

<source>:3:43: error: expected '{' before '->' token

    3 |     auto foo = []() __attribute__((cold)) -> bool { return false; };

      |                                           ^~

<source>: In function 'int main()':

<source>:3:43: error: base operand of '->' has non-pointer type
'main()::<lambda()>'

<source>:3:46: error: expected unqualified-id before 'bool'

    3 |     auto foo = []() __attribute__((cold)) -> bool { return false; };

      |                                              ^~~~

Compiler returned: 1

Reply via email to