My question (Single line comment continuation) got me wondering about compiler compliance and warning messages, particularly with warnings-as-error feature in many compilers.
From the C++ spec, § 1.4.2.1 states:
If a program contains no violations of the rules in this International Standard, a conforming implementation shall, within its resource limits, accept and correctly execute that program.
If a warning message is issued for code which technically conforms to the standard (as in my linked question), even if I specifically asked for a warning to be issued (again, in my example if I used -Wcomments with gcc), and I use warning-as-errors (-Werror), the program will not compile. I realize that this is rather obtuse, given that I could workaround the issue in several ways. However, given the quote, is this a violation of the standard which is generally permitted, or is somehow otherwise explicitly allowed?
gcc -Werroras not being a conforming implementation if that helps. Think of it as only a developtment and styling assistant (like Clippy) that helps you create a nice-looking program that you can (or could) give to a conforming implementation.-Werror. I don't use other compilers enough to comment on them.