diff options
| author | Jonathan Wakely <jwakely@redhat.com> | 2026-02-03 15:57:47 +0000 |
|---|---|---|
| committer | Jonathan Wakely <redi@gcc.gnu.org> | 2026-02-05 16:48:20 +0000 |
| commit | 269ce3de8c49c2244a5b4aeee5c3a90a26253da1 (patch) | |
| tree | db2eb278deabe7b57a0956eec61e2a487b734bdd /libjava/gnu/java | |
| parent | 638fe9a49a2874e91d6fb56f796b707f0970c0c5 (diff) | |
| download | gcc-269ce3de8c49c2244a5b4aeee5c3a90a26253da1.zip gcc-269ce3de8c49c2244a5b4aeee5c3a90a26253da1.tar.gz gcc-269ce3de8c49c2244a5b4aeee5c3a90a26253da1.tar.bz2 | |
libstdc++: Fix ambiguity caused by new std::source_location constructor
The new constructor added for Contracts support was not explicit, so
caused ambiguities when arbitrary pointers were used in contexts which
could convert to std::source_location.
We don't actually need a constructor, the contract_violation::location()
function can just set the data member directly.
libstdc++-v3/ChangeLog:
* include/std/contracts (contract_violation::location): Use
source_location default constructor and then set _M_impl.
* include/std/source_location (source_location(const void*)):
Remove constructor.
* testsuite/18_support/contracts/includes.cc: Move to...
* testsuite/18_support/contracts/srcloc.cc: ...here. Test for
ambiguity caused by new constructor.
Reviewed-by: Tomasz KamiĆski <tkaminsk@redhat.com>
Diffstat (limited to 'libjava/gnu/java')
0 files changed, 0 insertions, 0 deletions
