]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/87145 - bogus error converting class type in template arg list.
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Apr 2019 21:22:40 +0000 (21:22 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Apr 2019 21:22:40 +0000 (21:22 +0000)
commit168afa9b04d0765d40a1352b3582cd70ea71338f
tree0215c743d4c6ee48f4fea2ddf91b7cde0e067dab
parent49666f4062892053b008b27fa4b2d70e33eef601
PR c++/87145 - bogus error converting class type in template arg list.
* pt.c (convert_nontype_argument): Don't call
build_converted_constant_expr if it could involve calling a conversion
function with a instantiation-dependent constructor as its argument.

* g++.dg/cpp0x/constexpr-conv3.C: New test.
* g++.dg/cpp0x/constexpr-conv4.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270178 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-conv3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-conv4.C [new file with mode: 0644]