https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118875
Bug ID: 118875
Summary: Accept standard names with uppercase C
Product: gcc
Version: 14.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: eyalroz1 at gmx dot com
Target Milestone: ---
g++/gcc 's command-line processor will accept C and C++ standard names only
with a lowercase c: "c89", "c++11" etc. It will reject "C89", "C++11" and so
on. It even has a custom error message:
g++: error: unrecognized command-line option ‘--std=C89’; did you mean
‘--std=c89’?
This restriction is, to my mind, counter-intuitive and useless. The language
names _are_, after all, in upper case; users are likely to assume the uppercase
version is acceptable; and the code even knows this, being already able to map
the uppercase variant to the lowercase one.
Well, why not just accept it?