forked from andreasfertig/cppinsights
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7047fbe
commit 20cc2a9
Showing
56 changed files
with
473 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
.tmp.cpp:108:14: error: cannot assign to non-static data member 'start' with const-qualified type 'const int &' | ||
__f->start = std::forward<const int &>(start); | ||
~~~~~~~~~~ ^ | ||
108 | __f->start = std::forward<const int &>(start); | ||
| ~~~~~~~~~~ ^ | ||
.tmp.cpp:87:15: note: non-static data member 'start' declared const here | ||
const int & start; | ||
~~~~~~~~~~~~^~~~~ | ||
87 | const int & start; | ||
| ~~~~~~~~~~~~^~~~~ | ||
.tmp.cpp:152:12: error: no viable overloaded '=' | ||
__f->s = {0, '\0'}; | ||
~~~~~~ ^ ~~~~~~~~~ | ||
152 | __f->s = {0, '\0'}; | ||
| ~~~~~~ ^ ~~~~~~~~~ | ||
.tmp.cpp:89:10: note: candidate function (the implicit copy assignment operator) not viable: 'this' argument has type 'const S', but method is not marked const | ||
struct S | ||
^ | ||
89 | struct S | ||
| ^ | ||
.tmp.cpp:89:10: note: candidate function (the implicit move assignment operator) not viable: 'this' argument has type 'const S', but method is not marked const | ||
2 errors generated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.tmp.cpp:174:3: error: unknown type name 'awaiter' | ||
awaiter __suspend_54_5; | ||
^ | ||
174 | awaiter __suspend_54_5; | ||
| ^ | ||
.tmp.cpp:256:10: warning: expression result unused [-Wunused-value] | ||
__f->__suspend_56_14_res; | ||
~~~ ^~~~~~~~~~~~~~~~~~~ | ||
256 | __f->__suspend_56_14_res; | ||
| ~~~ ^~~~~~~~~~~~~~~~~~~ | ||
1 warning and 1 error generated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
.tmp.cpp:279:26: error: object of type 'generator' cannot be assigned because its copy assignment operator is implicitly deleted | ||
__f->__suspend_56_24 = simpleReturn(__f->v); | ||
^ | ||
279 | __f->__suspend_56_24 = simpleReturn(__f->v); | ||
| ^ | ||
.tmp.cpp:72:10: note: copy assignment operator is implicitly deleted because 'generator' has a user-declared move constructor | ||
inline generator(generator && rhs) | ||
^ | ||
72 | inline generator(generator && rhs) | ||
| ^ | ||
.tmp.cpp:290:26: error: object of type 'generator' cannot be assigned because its copy assignment operator is implicitly deleted | ||
__f->__suspend_56_51 = simpleReturn(__f->v + 1); | ||
^ | ||
290 | __f->__suspend_56_51 = simpleReturn(__f->v + 1); | ||
| ^ | ||
.tmp.cpp:72:10: note: copy assignment operator is implicitly deleted because 'generator' has a user-declared move constructor | ||
inline generator(generator && rhs) | ||
^ | ||
72 | inline generator(generator && rhs) | ||
| ^ | ||
.tmp.cpp:412:26: error: object of type 'generator' cannot be assigned because its copy assignment operator is implicitly deleted | ||
__f->__suspend_60_24 = simpleReturn(__f->v); | ||
^ | ||
412 | __f->__suspend_60_24 = simpleReturn(__f->v); | ||
| ^ | ||
.tmp.cpp:72:10: note: copy assignment operator is implicitly deleted because 'generator' has a user-declared move constructor | ||
inline generator(generator && rhs) | ||
^ | ||
72 | inline generator(generator && rhs) | ||
| ^ | ||
.tmp.cpp:423:26: error: object of type 'generator' cannot be assigned because its copy assignment operator is implicitly deleted | ||
__f->__suspend_60_51 = simpleReturn(__f->v + 1); | ||
^ | ||
423 | __f->__suspend_60_51 = simpleReturn(__f->v + 1); | ||
| ^ | ||
.tmp.cpp:72:10: note: copy assignment operator is implicitly deleted because 'generator' has a user-declared move constructor | ||
inline generator(generator && rhs) | ||
^ | ||
72 | inline generator(generator && rhs) | ||
| ^ | ||
.tmp.cpp:434:26: error: object of type 'generator' cannot be assigned because its copy assignment operator is implicitly deleted | ||
__f->__suspend_60_80 = simpleReturn(__f->v + 2); | ||
^ | ||
434 | __f->__suspend_60_80 = simpleReturn(__f->v + 2); | ||
| ^ | ||
.tmp.cpp:72:10: note: copy assignment operator is implicitly deleted because 'generator' has a user-declared move constructor | ||
inline generator(generator && rhs) | ||
^ | ||
72 | inline generator(generator && rhs) | ||
| ^ | ||
.tmp.cpp:553:26: error: object of type 'generator' cannot be assigned because its copy assignment operator is implicitly deleted | ||
__f->__suspend_67_24 = simpleReturn(__f->v); | ||
^ | ||
553 | __f->__suspend_67_24 = simpleReturn(__f->v); | ||
| ^ | ||
.tmp.cpp:72:10: note: copy assignment operator is implicitly deleted because 'generator' has a user-declared move constructor | ||
inline generator(generator && rhs) | ||
^ | ||
72 | inline generator(generator && rhs) | ||
| ^ | ||
.tmp.cpp:564:26: error: object of type 'generator' cannot be assigned because its copy assignment operator is implicitly deleted | ||
__f->__suspend_67_51 = simpleReturn(__f->v + 1); | ||
^ | ||
564 | __f->__suspend_67_51 = simpleReturn(__f->v + 1); | ||
| ^ | ||
.tmp.cpp:72:10: note: copy assignment operator is implicitly deleted because 'generator' has a user-declared move constructor | ||
inline generator(generator && rhs) | ||
^ | ||
72 | inline generator(generator && rhs) | ||
| ^ | ||
7 errors generated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.tmp:4:27: error: 'decltype(auto)' can only be used as a return type in a function declaration | ||
decltype(auto) (Foo::*bar)(); | ||
^ | ||
4 | decltype(auto) (Foo::*bar)(); | ||
| ^ | ||
.tmp:4:23: error: declaration of variable 'bar' with deduced type 'decltype(auto) (Foo::*)()' requires an initializer | ||
decltype(auto) (Foo::*bar)(); | ||
^ | ||
4 | decltype(auto) (Foo::*bar)(); | ||
| ^ | ||
2 errors generated. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,4 @@ struct Foo | |
using MemberVarPtr_4 = decltype(auto) (Foo::*)(); | ||
MemberVarPtr_4 bar; | ||
|
||
decltype(auto) (Foo::*bar)(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.