carlo.bertolli added a comment. I can actually add a regression test that checks that the compiler does not break when using a global in a teams region, even without declare target, if that is what is required here. Repository: rL LLVM http://reviews.llvm.org/D17963