An assertion failure in clang prevents to use a `const` global variable in a (non-default) address space with a dynamic initialization, for example: ``` int f(); extern const int __attribute__((address_space(10))) test3 = f(); ``` [Godbolt demo](https://godbolt.org/z/1oajdfqx6) The issue is related to the emission of an `llvm.invariant.start` intrinsic in the dynamic initialization of `const` variables. (Issue diagnosed with help from @kortbeek-snps.)