public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/115440] New: unrecognized command-line option '--c++17'; did you mean '--stdc++17'?
@ 2024-06-11 17:33 arthur.j.odwyer at gmail dot com
  2024-06-11 17:42 ` [Bug driver/115440] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: arthur.j.odwyer at gmail dot com @ 2024-06-11 17:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115440

            Bug ID: 115440
           Summary: unrecognized command-line option '--c++17'; did you
                    mean '--stdc++17'?
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arthur.j.odwyer at gmail dot com
  Target Milestone: ---

This is merely a very minor glitch in an error message. But I keep noticing it
when I accidentally use an EDG-style "--c++11, --c++14, ..." option with GCC
instead of the correct "-std=c++11, -std=c++14, ...".

% g++ --c++17 test.cpp
g++: error: unrecognized command-line option '--c++17'; did you mean
'--stdc++17'?
% g++ --stdc++17 test.cpp
g++: error: unrecognized command-line option '--stdc++17'

Instead of "--stdc++XX" it should be suggesting "-std=c++17" (one dash, equals
sign).  (Two dashes "--std=c++XX" does also work, but ~nobody writes that in
real life, so I don't think the driver should suggest that anybody start.)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-06-20 13:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-11 17:33 [Bug driver/115440] New: unrecognized command-line option '--c++17'; did you mean '--stdc++17'? arthur.j.odwyer at gmail dot com
2024-06-11 17:42 ` [Bug driver/115440] " pinskia at gcc dot gnu.org
2024-06-11 19:04 ` redi at gcc dot gnu.org
2024-06-11 21:23 ` jakub at gcc dot gnu.org
2024-06-17 20:04 ` cvs-commit at gcc dot gnu.org
2024-06-20  8:27 ` cvs-commit at gcc dot gnu.org
2024-06-20  8:32 ` cvs-commit at gcc dot gnu.org
2024-06-20  8:54 ` cvs-commit at gcc dot gnu.org
2024-06-20 13:24 ` cvs-commit at gcc dot gnu.org
2024-06-20 13:44 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).