Skip to content
New issue

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 failure involving global variable #473

Closed
jpkenny opened this issue Sep 10, 2019 · 1 comment
Closed

pragma sst new failure involving global variable #473

jpkenny opened this issue Sep 10, 2019 · 1 comment
Assignees

Comments

@jpkenny
Copy link
Contributor

jpkenny commented Sep 10, 2019

"#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.

jjwilke pushed a commit that referenced this issue Sep 10, 2019
@jjwilke
Copy link
Contributor

jjwilke commented Mar 16, 2020

This been fixed.

@jjwilke jjwilke closed this as completed Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants