aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/resource/java
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2026-02-03 15:57:47 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2026-02-05 16:48:20 +0000
commit269ce3de8c49c2244a5b4aeee5c3a90a26253da1 (patch)
treedb2eb278deabe7b57a0956eec61e2a487b734bdd /libjava/classpath/resource/java
parent638fe9a49a2874e91d6fb56f796b707f0970c0c5 (diff)
downloadgcc-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/classpath/resource/java')
0 files changed, 0 insertions, 0 deletions