I've done some work on this, and wrote a draft paper <
https://github.com/chorman0773/CXX-Papers/blob/master/std_error_function.md>.
I am interested in any feedback.
I decided on a similar function, std::compiler_error, which has the same compile time behavior, but its UB at runtime. This would allow users to write std::error, with whatever runtime behavior they wish.
I would be interested in any feedback people have, both on the semantics, and in the structure of the paper itself.
Thank you to the great people on the std-proposals mailing list.