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

Incorrect translation of the incomplete shared pointer to a structure #32

Closed
nenadv opened this issue Dec 26, 2013 · 0 comments
Closed
Assignees
Labels

Comments

@nenadv
Copy link

nenadv commented Dec 26, 2013

The following code (upcfish.upc):

struct OceanGrid1{
    int SharkForceY; 
    };
struct Shark {
    shared struct OceanGrid1 *position1;
    shared struct OceanGrid *position;
    };

struct OceanGrid{
    int SharkForceY; 
    };

translates into

struct OceanGrid1 {                                                             
    int SharkForceY;                                                            
};                                                                              
struct Shark {                                                                  
    upcr_pshared_ptr_t position1;                                               
    struct OceanGrid;                                                           
    upcr_pshared_ptr_t position;                                                
};                                                                              
struct OceanGrid {                                                              
    int SharkForceY;                                                            
};

Line "struct OceanGrid" in the "Sahrk" structure is extra. It seems that it happens only on the incomplete types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants