[PATCH 4/7] gdb: Introduce stabs_debuginfo_reader

Tom Tromey tom@tromey.com
Fri Dec 20 20:24:32 GMT 2024


>>>>> "Guinevere" == Guinevere Larsen <guinevere@redhat.com> writes:

Guinevere> On the other hand, I just tried a very simple test program, and both
Guinevere> g++ and clang compile it with --std=c++17, so long as I keep the order
Guinevere> the same as declaration order.

If you try -std=c++17 -pedantic it will error.
I don't know why gcc accepts this without -pedantic.

Guinevere> If you want to go by what the standards say, not what gcc/clang do, I 
Guinevere> can do what riscv did and add comments around these until we get to
Guinevere> c++20

Yes, I think it's necessary to follow the standard to the extent
possible.

Tom


More information about the Gdb-patches mailing list