File tree Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,6 @@ Bug Fixes to Attribute Support
148148
149149- ``[[nodiscard]] `` is now respected on Objective-C and Objective-C++ methods.
150150 (#GH141504)
151- - Fixed a crash in the static analyzer that when the expression in an
152- ``[[assume(expr)]] `` attribute was enclosed in parentheses. (#GH151529)
153151
154152Bug Fixes to C++ Support
155153^^^^^^^^^^^^^^^^^^^^^^^^
@@ -249,6 +247,8 @@ New features
249247
250248Crash and bug fixes
251249^^^^^^^^^^^^^^^^^^^
250+ - Fixed a crash in the static analyzer that when the expression in an
251+ ``[[assume(expr)]] `` attribute was enclosed in parentheses. (#GH151529)
252252
253253Improvements
254254^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -62,3 +62,14 @@ int using_builtin_assume_has_no_sideeffects(int y) {
6262
6363 return y;
6464}
65+
66+ template <int ...args>
67+ bool issue151529 () {
68+ [[assume ((true ))]]; // no-crash
69+ [[assume (((args >= 0 ) && ...))]]; // no-crash
70+ return ((args >= 0 ) && ...);
71+ }
72+
73+ void instantiate_issue151529 () {
74+ issue151529<0 >();
75+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments