File tree 2 files changed +2
-29
lines changed
regression-tests/test-results
2 files changed +2
-29
lines changed Original file line number Diff line number Diff line change 1
- pure2-assert-expected-not-null.cpp2:7:22: error: expected '(' for function-style cast or type construction
2
- 7 | std::expected<int,bool> ex {4};
3
- | ~~~^
4
- pure2-assert-expected-not-null.cpp2:7:10: error: no member named 'expected' in namespace 'std'; did you mean 'unexpected'?
5
- 7 | std::expected<int,bool> ex {4};
6
- | ~~~~~^~~~~~~~
7
- | unexpected
8
- /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/exception:110:8: note: 'unexpected' declared here
9
- 110 | void unexpected() __attribute__ ((__noreturn__,__cold__));
10
- | ^
11
- pure2-assert-expected-not-null.cpp2:9:193: error: use of undeclared identifier 'ex'
12
- 9 | return *cpp2::impl::assert_not_null(cpp2::move(up)) + *cpp2::impl::assert_not_null(cpp2::move(sp)) + *cpp2::impl::assert_not_null(cpp2::move(op)) + *cpp2::impl::assert_not_null(cpp2::move(ex));
13
- | ^
14
- pure2-assert-expected-not-null.cpp2:14:22: error: expected '(' for function-style cast or type construction
15
- 14 | std::expected<int,bool> ex {std::unexpected(false)};
16
- | ~~~^
17
- pure2-assert-expected-not-null.cpp2:14:10: error: no member named 'expected' in namespace 'std'; did you mean 'unexpected'?
18
- 14 | std::expected<int,bool> ex {std::unexpected(false)};
19
- | ~~~~~^~~~~~~~
20
- | unexpected
21
- /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/exception:110:8: note: 'unexpected' declared here
22
- 110 | void unexpected() __attribute__ ((__noreturn__,__cold__));
23
- | ^
24
- pure2-assert-expected-not-null.cpp2:15:52: error: use of undeclared identifier 'ex'
25
- 15 | return *cpp2::impl::assert_not_null(cpp2::move(ex));
26
- | ^
27
- 6 errors generated.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ pure2-assert-expected-not-null.cpp2(7): error C2143: syntax error: missing ';' b
6
6
pure2-assert-expected-not-null.cpp2(7): error C2143: syntax error: missing ';' before '}'
7
7
pure2-assert-expected-not-null.cpp2(9): error C2065: 'ex': undeclared identifier
8
8
pure2-assert-expected-not-null.cpp2(9): error C2672: 'cpp2::impl::assert_not_null': no matching overloaded function found
9
- D:␇ \cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
9
+ D:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
10
10
pure2-assert-expected-not-null.cpp2(14): error C2039: 'expected': is not a member of 'std'
11
11
predefined C++ types (compiler internal)(347): note: see declaration of 'std'
12
12
pure2-assert-expected-not-null.cpp2(14): error C2062: type 'int' unexpected
@@ -19,4 +19,4 @@ pure2-assert-expected-not-null.cpp2(14): note: while trying to match the argumen
19
19
pure2-assert-expected-not-null.cpp2(14): error C2143: syntax error: missing ';' before '}'
20
20
pure2-assert-expected-not-null.cpp2(15): error C2065: 'ex': undeclared identifier
21
21
pure2-assert-expected-not-null.cpp2(15): error C2672: 'cpp2::impl::assert_not_null': no matching overloaded function found
22
- D:␇ \cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
22
+ D:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
You can’t perform that action at this time.
0 commit comments