LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 49736 - [P1102R2] acceptance of invalid lambda syntax in C++23
Summary: [P1102R2] acceptance of invalid lambda syntax in C++23
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: C++2b (show other bugs)
Version: trunk
Hardware: PC All
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-26 20:44 PDT by 康桓瑋(hewill)
Modified: 2021-03-31 03:21 PDT (History)
5 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 康桓瑋(hewill) 2021-03-26 20:44:21 PDT
https://godbolt.org/z/oz3x6eeYK

auto l = []<auto> noexcept requires true {};

Although I am not particularly sure, this kind of grammar should be considered wrong?
Comment 2 Marek Kurdej 2021-03-29 01:34:06 PDT
Patch in review: https://reviews.llvm.org/D99489.
Thanks for reporting. I'm the one to blame :).
Comment 3 康桓瑋(hewill) 2021-03-29 01:45:12 PDT
Just want to make c++ better, thank you for your hard work and contribution.
Comment 5 Marek Kurdej 2021-03-31 03:21:13 PDT
Changed component to C++2b.