]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: overloaded fn in contract [PR108542]
authorJason Merrill <jason@redhat.com>
Thu, 9 Mar 2023 22:22:46 +0000 (17:22 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 10 Mar 2023 03:14:03 +0000 (22:14 -0500)
commit68c5d92a1390ecccb61d3600a95eeff6caf7ccdf
treee165f7819a0cc0720e958c8d233edae1bb0d7b0a
parentda2b9c6e310e808f73c5dcfb3f46ca70b836e8f5
c++: overloaded fn in contract [PR108542]

PR c++/108542

gcc/cp/ChangeLog:

* class.cc (instantiate_type): Strip location wrapper.

gcc/testsuite/ChangeLog:

* g++.dg/contracts/contracts-err1.C: New test.
gcc/cp/class.cc
gcc/testsuite/g++.dg/contracts/contracts-err1.C [new file with mode: 0644]