You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<cppx/meta>
#include<cppx/compiler>usingnamespacecppx::meta;structdate {
int y;
int m;
int d;
virtualvoidf() { }
};
intmain() {
std::cout << $date::f.is_virtual() << '\n';
}
The problem is that std::cout is not in scope, and the compiler is trying to adjust the "typo". The crash comes from a failed transformation of a template argument.
I strongly suspect that this is because we are not forming the template argument to the constructor to the type of the reflection correctly. It probably needs an actual expression, not just an APInt as the argument.
The text was updated successfully, but these errors were encountered:
Here's a small example that triggers the crash.
The problem is that
std::cout
is not in scope, and the compiler is trying to adjust the "typo". The crash comes from a failed transformation of a template argument.I strongly suspect that this is because we are not forming the template argument to the constructor to the type of the reflection correctly. It probably needs an actual expression, not just an APInt as the argument.
The text was updated successfully, but these errors were encountered: