In the C++ standard does well-formed means that the code compiles?
问题 The C++ standards defines well-formed programs as C ++ program constructed according to the syntax rules, diagnosable semantic rules, and the one-definition rule I am wondering if all well-formed program compile or not (if it is not the case, what types of error make the difference between a well-formed program and a compilable problem). For example would a program containing ambiguity errors considered as well-formed? 回答1: A well-formed program can have undefined behaviour. It's in a note,