[Bug c++/123823] New: [reflection] wrong parsing of :]<
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 26 16:48:27 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123823
Bug ID: 123823
Summary: [reflection] wrong parsing of :]<
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
```
int i;
constexpr auto r = ^^i;
bool b = [:r:] < 42;
```
This should compile, but we think the '<' starts a template-argument-list.
More information about the Gcc-bugs
mailing list