Hi, On 14/08/19 23:22, Marek Polacek wrote:
+ /* [dcl.spec]/2 "At most one of the constexpr, consteval, and constinit + keywords shall appear in a decl-specifier-seq." */ + if (constinit_p && constexpr_p) + { + error_at (min_location (declspecs->locations[ds_constinit], + declspecs->locations[ds_constexpr]), + "can use at most one of the %<constinit%> and %<constexpr%> " + "specifiers");
For this error we also have the option of using a gcc_rich_location, and add_range, etc, like for signed_p && unsigned_p, for example. Just saying, since we have the infrastructure ready...
Paolo.