[Bug c++/110380] New: [feature request] "-pg-constexpr=coverage-output" emit coverage metrics for constexpr code evaluated at compile time
gasper.azman at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 23 17:57:23 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110380
Bug ID: 110380
Summary: [feature request] "-pg-constexpr=coverage-output" emit
coverage metrics for constexpr code evaluated at
compile time
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gasper.azman at gmail dot com
Target Milestone: ---
We've been converting so much code to constexpr that entire test suites are now
evaluated at compile time. This is a problem because traditional coverage
metrics have become useless, but compile time evaluation is desirable due to
deep-UB checking.
It would be nice if gcc could emit coverage metrics for code that it executed
at compile time during the build, so that prof could combine it with the rest
of the test coverage.
Probably not a high priority, but a nice-to-have at some point.
More information about the Gcc-bugs
mailing list