https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126158
Bug ID: 126158
Summary: --std=c++26 doesn't seem to enable contracts correctly
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ville.voutilainen at gmail dot com
Target Milestone: ---
See https://godbolt.org/z/9xfWd8e4T
When only --std=c++26 is used, the contracts syntax is accepted, but linking
the default violation handler fails
When --std=c++26 -fcontracts is used, the contracts syntax is accepted and
linking the default violation handler succeeds.