Commit c189cd0
committed
cmake: raise Clang's expression nesting limit
Clang caps expression nesting at 256. Avendish assembles the module list with
std::tuple_cat, and libstdc++'s tuple constructor folds over every element:
explicit(!(__is_implicitly_default_constructible_v<_Elements> && ...))
giving one term per module. Once the count passes 256 that stops being a
diagnostic and becomes a hard error:
tuple:965: fatal error: instantiating fold expression with 330 arguments
exceeded expression nesting limit
It is at 330 today and only grows as plug-ins are added, so this raises the
ceiling well clear rather than to the next value above the current count.
Costs nothing when the limit is not reached, and GCC has no equivalent cap.1 parent 44f21d1 commit c189cd0
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
0 commit comments