File tree 2 files changed +4
-5
lines changed
regression-tests/test-results
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
2
- #define CPP2_USE_MODULES Yes
2
+ #define CPP2_IMPORT_STD Yes
3
3
4
4
// === Cpp2 type declarations ====================================================
5
5
6
6
7
7
#include " cpp2util.h"
8
8
9
- #line 1 "pure2-bugfix-for-unbraced-function-expression.cpp2"
10
9
class t ;
11
10
12
11
13
12
// === Cpp2 type definitions and function declarations ===========================
14
13
15
- #line 1 "pure2-bugfix-for-unbraced-function-expression.cpp2"
16
14
class t {
17
- public: auto operator [](auto const & f) const -> void ;
15
+ public: auto operator [](auto const & f) const & -> void ;
18
16
19
17
public: t() = default ;
20
18
public: t(t const &) = delete ; /* No 'that' constructor, suppress copy */
@@ -28,7 +26,7 @@ class t {
28
26
29
27
30
28
#line 2 "pure2-bugfix-for-unbraced-function-expression.cpp2"
31
- auto t::operator [](auto const & f) const -> void {}
29
+ auto t::operator [](auto const & f) const & -> void {}
32
30
33
31
[[nodiscard]] auto main () -> int{
34
32
{
Original file line number Diff line number Diff line change @@ -5364,6 +5364,7 @@ class parser
5364
5364
&& curr ().type () != lexeme::LeftParen // not imediatelly called
5365
5365
&& curr ().type () != lexeme::RightParen // not as a last argument to function
5366
5366
&& curr ().type () != lexeme::Comma // not as first or in-the-middle, function argument
5367
+ && curr ().type () != lexeme::Greater // not as the last argument to template
5367
5368
&& curr ().type () != lexeme::RightBracket // not as the last index argument
5368
5369
&& curr () != " is" // not as the argument to is
5369
5370
&& curr () != " as" // not as the argument to as
You can’t perform that action at this time.
0 commit comments