When template instantiation leads to creation of invalid code patterns with address spaces compiler crashes with ICE.
This patch fixes the template instantiation to provide correct diagnostics instead.
Differential D54858
[OpenCL] Improve diagnostics for address spaces in template instantiation Anastasia on Nov 23 2018, 6:07 AM. Authored by
Details When template instantiation leads to creation of invalid code patterns with address spaces compiler crashes with ICE. This patch fixes the template instantiation to provide correct diagnostics instead.
Diff Detail Event Timeline
Comment Actions
|
When do you actually add the qualifier back?
Also, I don't think this is specific to either OpenCL or direct references to template type parameters; it has to be any dependent type.