https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86049
Tomalak Geret'kal <tom at kera dot name> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tom at kera dot name --- Comment #3 from Tomalak Geret'kal <tom at kera dot name> --- I disagree and think that Clang is wrong. The top-level qualifiers of T (the type of One) should be "cv", and cv is "the cv-qualifiers in the decl-specifier-seq". The decl-specifier-seq is "auto", not "const auto". That "auto" will infer "const int" doesn't seem to be relevant. Discussion on https://stackoverflow.com/q/53726135/560648.