https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114384
Bug ID: 114384
Summary: Use of `target c++98/c++11/c++20` etc. is not
documented
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: documentation
Severity: trivial
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
While trying to understand how to use `{ target c++20 }` option to dg-do I
noticed it is not documented in the internals manual (sourcebuild.texi) while
all other target support options are there.
It would be useful to have this documented because the rules seems to get
complex if you have a testcase which says works one way for C++11 to C++14 but
works another way for C++98 and C++17+.
Where is it valid to place these targets and even how to describe the above
would be very useful. Do we need 3 testcases, one for pre C++11, one for
C++11/C++14 and one for C++17+ ?