Skip to content

Commit 7a1a992

Browse files
committed
Work around GCC 10.0-2's lack of lambda attribute support, closes #605
And bring a few tests outputs up to date
1 parent b757afd commit 7a1a992

9 files changed

+8
-2
lines changed

include/cpp2util.h

+5
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,11 @@ class out {
676676
#else
677677
#define CPP2_LAMBDA_NO_DISCARD
678678
#endif
679+
#if ((__GNUC__ * 100) + __GNUC_MINOR__) < 1003
680+
// GCC 10.2 doesn't support this feature (10.3 is fine)
681+
#undef CPP2_FORCE_INLINE_LAMBDA
682+
#define CPP2_FORCE_INLINE_LAMBDA
683+
#endif
679684
#else
680685
#define CPP2_LAMBDA_NO_DISCARD
681686
#endif

regression-tests/test-results/clang-12/pure2-bugfix-for-max-munch.cpp.execution

Whitespace-only changes.

regression-tests/test-results/clang-12/pure2-bugfix-for-max-munch.cpp.output

Whitespace-only changes.

regression-tests/test-results/gcc-13/pure2-bugfix-for-max-munch.cpp.execution

Whitespace-only changes.

regression-tests/test-results/gcc-13/pure2-bugfix-for-max-munch.cpp.output

Whitespace-only changes.

regression-tests/test-results/msvc-2022/pure2-bugfix-for-max-munch.cpp.execution

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pure2-bugfix-for-max-munch.cpp

regression-tests/test-results/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cppfront compiler v0.2.1 Build 8815:1647
2+
cppfront compiler v0.2.1 Build 8828:1624
33
Copyright(c) Herb Sutter All rights reserved
44

55
SPDX-License-Identifier: CC-BY-NC-ND-4.0

source/build.info

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"8815:1647"
1+
"8828:1624"

0 commit comments

Comments
 (0)