Skip to content

Commit 0c13850

Browse files
authored
Merge pull request #3223 from stan-dev/tbb-clang21.1-patch
Patch TBB's out-of-range enum usage for clang 21.1
2 parents c8beeaf + 5c54b7e commit 0c13850

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/tbb_2020.3/STAN_CHANGES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ This file documents changes done for the stan-math project
1313
- build/windows.gcc.inc
1414
- L84 Wrapped the use of `-flifetime-dse` flag in conditional on non-WINARM64
1515
- L101 Wrapped the use of `-msse` in conditional on non-WINARM64
16-
16+
17+
- Added variants to the `kind_type` enum to prevent creation of out-of-range values

lib/tbb_2020.3/include/tbb/task.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,10 @@ class task_group_context : internal::no_copy {
376376
public:
377377
enum kind_type {
378378
isolated,
379-
bound
379+
bound,
380+
kind_complete,
381+
kind_detached,
382+
kind_dying
380383
};
381384

382385
enum traits_type {

0 commit comments

Comments
 (0)