clangupc / clang-upc

Clang UPC Front-End
https://clangupc.github.io/
Other
16 stars 5 forks source link

UPC 1.3: UPC barrier ID expression - implicit conversion allowed #29

Closed nenadv closed 10 years ago

nenadv commented 10 years ago

Same as issue #42 on upc2c.

spec1.3/issue64 generates warnings as barrier IDs are not of integer type.

UPC spec 1.3 states that barrier "expression shall have a type such that its value may be assigned to an object of type int". This means that implicit conversion on barrier ID is ok and should not produce a warning.

PHHargrove commented 10 years ago

Nenad,

I think that the warnings are OK, as long as the are the same ones that would be generated for an assignment to an object of type int. That appears to be the case as far as I can tell.

-Paul