We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"#pragma sst new" fails with the following reproducer involving a global variable. Failure occurs on the flow-stats branch of sst-macro.
test jpkenny$ cat test.cc #include<string.h>
int max_buffer_size = 1024 * 1024 * 4;
int main () { #pragma sst new char* buffer = new char[max_buffer_size]; ::memset(buffer, 0, max_buffer_size); }
test jpkenny$ SSTMAC_SKELETONIZE=1 sst++ -I. -fPIC -O3 -std=c++11 -c test.cc -o test.o test.cc:7:34: error: expected ';' at end of declaration char * (*sstmac_max_buffer_size)r; ^ ; test.cc:8:19: error: use of undeclared identifier 'buffer' ::sstmac_memset(buffer, 0, (*sstmac_max_buffer_size)); ^ 2 errors generated.
The text was updated successfully, but these errors were encountered:
fix refs, compiler bug: #473
3ba22e8
This been fixed.
Sorry, something went wrong.
jjwilke
No branches or pull requests
"#pragma sst new" fails with the following reproducer involving a global variable. Failure occurs on the flow-stats branch of sst-macro.
test jpkenny$ cat test.cc
#include<string.h>
int max_buffer_size = 1024 * 1024 * 4;
int main () {
#pragma sst new
char* buffer = new char[max_buffer_size];
::memset(buffer, 0, max_buffer_size);
}
test jpkenny$ SSTMAC_SKELETONIZE=1 sst++ -I. -fPIC -O3 -std=c++11 -c test.cc -o test.o
test.cc:7:34: error: expected ';' at end of declaration
char * (*sstmac_max_buffer_size)r;
^
;
test.cc:8:19: error: use of undeclared identifier 'buffer'
::sstmac_memset(buffer, 0, (*sstmac_max_buffer_size));
^
2 errors generated.
The text was updated successfully, but these errors were encountered: