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

Alvin Wong <alvinhochun at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alvinhochun at gmail dot com

--- Comment #6 from Alvin Wong <alvinhochun at gmail dot com> ---
Still a problem with 12.2 / trunk using GNU attributes:


$ <<EOF g++ -x c++ - -c -fsyntax-only
auto a() {
    return [](int a) __attribute__((stdcall)) noexcept { return a + 1; };
}
EOF
<stdin>: In lambda function:
<stdin>:2:47: error: expected '{' before 'noexcept'
<stdin>: In function 'auto a()':
<stdin>:2:46: error: expected ';' before 'noexcept'
<stdin>:2:56: error: expected '(' before '{' token
<stdin>:2:56: error: expected primary-expression before '{' token
<stdin>:2:55: error: expected ')' before '{' token


https://godbolt.org/z/xMrb4Pqsj

Reply via email to