[PATCH] D59647: [CUDA][HIP] Warn shared var initialization

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 21 11:14:56 PDT 2019


tra added a comment.

This looks like one of the things we should *not* do as it affects correctness -- non-trivial constructor may be arbitrarily complex and the per-TU flag to enable this behavior is way too coarse, IMO.
On the other hand, I can believe that someone somewhere did write the code and relies to NVCC accepting it.

Is there a specific use case for this, other than matching nvcc bug-for-bug?

I've added Justin and Richard as reviewers for the language-lawyering input.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59647/new/

https://reviews.llvm.org/D59647





More information about the cfe-commits mailing list